-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from fasilwdr/dev
Release v0.1.6
- Loading branch information
Showing
5 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,12 @@ A powerful Python package for interacting with Odoo platforms via JSON-RPC. This | |
- 🔍 Smart record browsing and caching | ||
- 📊 Efficient batch operations | ||
- 🌐 Context management | ||
- 🔑 Session ID based authentication (New in 0.1.6) | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install pyodoo_connect | ||
pip install pyodoo_connect --upgrade | ||
``` | ||
|
||
### Requirements | ||
|
@@ -28,21 +29,30 @@ pip install pyodoo_connect | |
|
||
### Basic Connection | ||
|
||
You can connect to Odoo in two ways: | ||
|
||
#### 1. Using Credentials (Traditional) | ||
```python | ||
from pyodoo_connect import connect_odoo | ||
|
||
# Connect to Odoo | ||
# Connect using credentials | ||
odoo, session_id = connect_odoo( | ||
url="https://your-odoo-instance.com", | ||
db="your_database", | ||
username="your_username", | ||
password="your_password" | ||
) | ||
``` | ||
|
||
#### 2. Using Session ID (New in 0.1.6) | ||
```python | ||
from pyodoo_connect import connect_odoo | ||
|
||
# Check connection | ||
if odoo: | ||
print("Successfully connected!") | ||
print(f"Session ID: {session_id}") | ||
# Connect using existing session ID | ||
odoo, session_id = connect_odoo( | ||
url="https://your-odoo-instance.com", | ||
session_id="your_session_id" | ||
) | ||
``` | ||
|
||
## Usage Examples | ||
|
@@ -229,6 +239,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file | |
|
||
- **Name:** Fasil | ||
- **Email:** [email protected] | ||
- **WhatsApp:** [Contact](https://wa.me/966538952934) | ||
- **Facebook:** [Profile](https://www.facebook.com/fasilwdr) | ||
- **Instagram:** [Profile](https://www.instagram.com/fasilwdr) | ||
- **WhatsApp:** [Contact](https://wa.me/966538952934) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
from .odoo import connect_odoo | ||
from .tools import Command | ||
|
||
__version__ = "0.1.5" | ||
__version__ = "0.1.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "pyodoo_connect" | ||
version = "0.1.5" | ||
version = "0.1.6" | ||
description = "A Python package to interact with Odoo via JSON-RPC." | ||
authors = [{ name = "Fasil", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = pyodoo_connect | ||
version = 0.1.5 | ||
version = 0.1.6 | ||
author = Fasil | ||
author_email = [email protected] | ||
description = A Python package to interact with Odoo via JSON-RPC. | ||
|