semvec/pypi-packages huggingface dataset:
ddecon 0.2.2
DDnet econ
Requires Python: >=3.10

## Installation

```bash
pip install ddecon
```
    
## Usage/Examples


sync
```python
import os

from ddecon import ECON

if __name__ == "__main__":
    econ = ECON(
        os.getenv("econ_ip"), int(os.getenv("econ_port")), os.getenv("econ_password")
    )
    econ.connect()
    econ.message("Hello World")
    while True:
        message = econ.read()
        if message is None:
            continue
        print(message.decode()[:-3])
```

async
```python
import asyncio
import os

from ddecon import AsyncECON


async def send_hello(econ):
    count = 0
    while True:
        count += 1
        await econ.message(f"Hello, world!, {count}")
        await asyncio.sleep(5)


async def main():
    econ = AsyncECON(
        os.getenv("econ_ip"), int(os.getenv("econ_port")), os.getenv("econ_password")
    )
    await econ.connect()
    asyncio.create_task(send_hello(econ))
    while True:
        message = await econ.read()
        if message is None:
            continue
        print(message.decode()[:-3])


asyncio.run(main())

```
python-1c-odata 0.1.2
Библиотека для работы с 1С через OData
Requires Python: >=3.7

# python-1c-odata

A library for working with 1C through the OData protocol. Supports asynchronous operations with documents, catalogs, and registers.

## Installation

```bash
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

```python
import asyncio
from python_1c_odata.core import Infobase
from python_1c_odata.document import Document
from python_1c_odata.catalog import Catalog
from python_1c_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