Skip to main content

A Python library for interacting with 1C:Enterprise databases via COM connection.

Project description

1C Interaction Library (onec_interaction)

A modular, clean Python library for interacting with 1C:Enterprise databases using Windows COM connection (V83.COMConnector).

Installation

Install the package locally in editable mode:

pip install -e .

Basic Usage

from onec_interaction import Connection, Customer, Order, OrderItem

# 1. Initialize the connection details
c_conn = Connection(
    s_oneCDatabasePathIn="C:\\Path\\To\\1C\\Database",
    s_usernameIn="admin",
    s_passwordIn="password"
)

# 2. Configure default parameters
c_conn.s_warehouse_code = "WH001"
c_conn.s_counteragent_code = "CA001"
c_conn.s_organisation_code = "ORG001"

# 3. Establish COM connection
c_conn.initiate_connection()

# 4. Use composition managers
# Fetch product details
c_product = c_conn.nomenclature.get(s_articleIn="ART001")
print(f"Product: {c_product.s_name}, Price: {c_product.l_variety[0].n_price}")

# Close connection when done
c_conn.close_connection()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onecinteraction-1.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onecinteraction-1.0.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file onecinteraction-1.0.0.tar.gz.

File metadata

  • Download URL: onecinteraction-1.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onecinteraction-1.0.0.tar.gz
Algorithm Hash digest
SHA256 16891d84d5615617fb37beffa3fedc5f781553e4d157115482ac535c8b777ba0
MD5 3ca426a3ff8b60c0fa2b79d4b1071aea
BLAKE2b-256 0658bc8dc459afbab78080f629c6db9ff2ab7d1b905ac0c94030195c8605f948

See more details on using hashes here.

Provenance

The following attestation bundles were made for onecinteraction-1.0.0.tar.gz:

Publisher: publish.yml on agcl-x/oneCInteractionLib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file onecinteraction-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: onecinteraction-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for onecinteraction-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf1556f150d92c001a5d7dec15a92d102ddf7e3b7dc51afbc8518692874bbf3
MD5 2bc6ada2a18828c74575aa62e6ca6f06
BLAKE2b-256 e1479e73e36a60cf3d018844d72e0b6602f1c62761cca0a3d6790ee13c671254

See more details on using hashes here.

Provenance

The following attestation bundles were made for onecinteraction-1.0.0-py3-none-any.whl:

Publisher: publish.yml on agcl-x/oneCInteractionLib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page