Библиотека для работы с 1С через OData
Project description
python-1c-odata
A library for working with 1C through the OData protocol. Supports asynchronous operations with documents, catalogs, and registers.
Installation
pip install python-1c-odata
Key Features
- Asynchronous document operations (create, read, post)
- Catalog operations (create, read, update)
- Information and accumulation registers support
- Filtering, selection, and data expansion support
Usage Examples
import asyncio
from odata.core import Infobase
from odata.document import Document
from odata.catalog import Catalog
from odata.informationregister import InformationRegister
async def main():
# Connect to 1C
infobase = Infobase(
server="http://your-server",
infobase="your-infobase",
username="your-username",
password="your-password"
)
# Work with documents
doc = Document(infobase, "Document")
docs = await doc.query(
top=10,
select="Ref_Key,Number,Date",
odata_filter="Date ge datetime'2024-01-01T00:00:00'"
)
# Work with catalog
catalog = Catalog(infobase, "Catalog")
items = await catalog.query(
top=100,
select="Ref_Key,Description"
)
# Work with register
register = InformationRegister(infobase, "Register")
data = await register.slice_last(
period="2024-03-20T00:00:00",
select="Period,RecordKey,Value"
)
if __name__ == "__main__":
asyncio.run(main())
Requirements
- Python 3.7+
- aiohttp
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_1c_odata-0.1.1.tar.gz
(5.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_1c_odata-0.1.1.tar.gz.
File metadata
- Download URL: python_1c_odata-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e81bf6d7bc27e252c8a51996a953f3c3acacae592601cd97816d53a378f3f639
|
|
| MD5 |
1f0a61569a4447700785f26f515af185
|
|
| BLAKE2b-256 |
d946c2686424185e161f7793970bc62f7fa0df71b5d23e45a0126a9ac91d1be9
|
File details
Details for the file python_1c_odata-0.1.1-py3-none-any.whl.
File metadata
- Download URL: python_1c_odata-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4edebfc484eedaa4760cb6e42a0e7d7fa5cafe6629f79924a5e78c419e02909
|
|
| MD5 |
8c164ada6e3a56e10dcf4642fcdb5ab4
|
|
| BLAKE2b-256 |
7da64899a4c447932720bf1004caacd4973034bf29d3bfc1dd9ccba18d3f952b
|