Skip to main content

CITES DDS Factory

Knihovna obsahuje factory pro přístup k datům CITES pomocí DDA

Třída DdsFactory je typu singleton a používá se v rámci aplikace pro správu dokumentů Jsou implementovány všechny základní funkce čtení a zápisu dat.

Knihovna neslouží ke stahování souborových příloh

Verze 1.2

Kompletně asynchronní verze. Knihovna requests nahrazena httpx. Odstraněn znak '$' z pohledů.

Do všech dotazů přidána záhlaví:

        "Cache-Control": "no-cache",
        "Content-Type": "application/json"

Verze 1.1

Přidána metoda get_permit_external_dda_dict, která pracuje s novými pohledy dds-permits-external-pid, dds-goods-external-pid, dds-permits-external, dds-goods-external

Příklad použití

Instalace knihovny:

pip install cites-dds

Zařazení do kódu:

from cites_dds.dds import DdsFactory

CONFIG = {
  CONFIG_DDS_DOCUMENTS: {
    CONFIG_URL: 'https://abc.example.com',
    CONFIG_USERNAME: 'xxxxxxxxxxxxx',
    CONFIG_PASSWORD:  '*************',
    CONFIG_REPID:     'XXXXXXXXXXXXXXXA'
  },
  CONFIG_DDS_PERMITS: {
    CONFIG_URL: 'https://abc.example.com',
    CONFIG_USERNAME: 'xxxxxxxxxxxxx',
    CONFIG_PASSWORD:  '*************',
    CONFIG_REPID:     'XXXXXXXXXXXXXXXA'
  },
  CONFIG_DDS_STATEMENTS: {
    CONFIG_URL: 'https://abc.example.com',
    CONFIG_USERNAME: 'xxxxxxxxxxxxx',
    CONFIG_PASSWORD:  '*************',
    CONFIG_REPID:     'XXXXXXXXXXXXXXXA'
  },
  CONFIG_DDS_CERT_REG: {
    CONFIG_URL: 'https://abc.example.com',
    CONFIG_USERNAME: 'xxxxxxxxxxxxx',
    CONFIG_PASSWORD:  '*************',
    CONFIG_REPID:     'XXXXXXXXXXXXXXXA'
  }
}

DDS_FACTORY = DdsFactory(config=CONFIG)

Metadata

Release files for cites-dds 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cites-dds 1.2.3
File Size Uploaded Provenance Actions
cites_dds-1.2.3.tar.gz 23.9 kB Without provenance Details for cites_dds-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cites-dds 1.2.3
File Interpreter ABI Platform Actions
cites_dds-1.2.3-py3-none-any.whl Python 3 none any Details for cites_dds-1.2.3-py3-none-any.whl

Total release size: 46.8 kB

Release files / cites_dds-1.2.3.tar.gz

Download URL cites_dds-1.2.3.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce1abbb546a6fbb8d438af3e9c0b1953d1d19351b50ddd08e897a3127f87f1fe
BLAKE2b-256 checksum
How to use checksums
1730987318ae39aaca40214c9c185aa7360208a83e3e3ca3c30f09db2e688b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / cites_dds-1.2.3-py3-none-any.whl

Download URL cites_dds-1.2.3-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d45845880e9c5d2d6982c2c4adabc1f529ec3b1163ddec39303d771611390904
BLAKE2b-256 checksum
How to use checksums
0aaa76538a5b8fa686a357e14b73c0ca621e6815da93c26d721e78375c1f39bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for cites-dds 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page