Pyodoo-connect

Latest version: v0.1.6

Safety actively analyzes 688587 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.6

New Features
1. **Session ID Based Authentication**
- Added ability to connect to Odoo using only URL and session ID
- Useful for maintaining existing sessions or connecting with pre-authenticated sessions
- Simplified connection process when session ID is already available

Improvements
1. **Connection Flexibility**
- Modified OdooAPI class to handle both credential-based and session-based authentication
- Added validation to ensure either session ID or complete credentials are provided
- Improved error handling for session validation

Technical Changes
1. **API Changes**
- Updated `connect_odoo()` function signature to make credentials optional when session ID is provided
- Modified internal session validation logic to work with both authentication methods
- Added new parameter validations in OdooAPI class initialization

Breaking Changes
- None. All existing functionality remains backward compatible

Migration Guide
No migration needed. Existing code will continue to work as before. To use the new session ID feature, simply provide the session ID instead of credentials.

Bug Fixes
- Improved error handling when invalid session IDs are provided
- Better validation of connection parameters

Security Notes
- Session IDs should be treated as sensitive information
- It's recommended to use HTTPS when connecting with session IDs
- Session expiration policies of your Odoo instance still apply

Usage Recommendations
1. Use credential-based authentication for:
- Initial connections
- Automated scripts
- When session persistence isn't required

2. Use session ID authentication for:
- Maintaining existing sessions
- Integration with other systems that already have valid sessions
- Reducing authentication overhead in trusted environments

0.1.5

Enhanced JSON-RPC implementation with improved session management and authentication capabilities.

**Key Features**

- Session ID persistence and automatic renewal
- Improved error handling for connection failures
- Enhanced context management for operations
- Optimized caching for model fields
- More robust authentication mechanism

**Improvements**

- Added session validation with configurable intervals
- Implemented smart record browsing with field caching
- Enhanced error messages for better debugging
- Added support for custom timeout configurations
- Improved handling of connection states

**Bug Fixes**

- Fixed session timeout issues
- Resolved connection pooling problems
- Corrected error handling in batch operations
- Fixed context inheritance in nested operations

0.1.4

The switch from urllib to httpx in the Odoo connector was made for several important reasons:

- **Modern Features:**


httpx offers both sync and async support
Automatic connection pooling and reuse
Built-in retry mechanisms
Better timeout handling
Native JSON support


- **Improved Security:**


Better SSL/TLS support by default
Modern security practices built-in
Automatic HTTP/2 support
Better certificate verification


- **Developer Experience:**


More intuitive API design
Better exception handling
Session management is simpler
Follows modern Python practices
Type hints support


- **Maintenance:**


httpx is actively maintained and regularly updated
Better documentation and community support
More consistent cross-platform behavior
Regular security updates

0.1.3

- Depends on urllib.request

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.