Skip to main content

CITES DDS factory

Project description

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.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)

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

cites_dds-1.1.3.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

cites_dds-1.1.3-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file cites_dds-1.1.3.tar.gz.

File metadata

  • Download URL: cites_dds-1.1.3.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cites_dds-1.1.3.tar.gz
Algorithm Hash digest
SHA256 d05eba59ffcd67e132a03dc74507de00289e1443d9a873c1f6e4b0deb5f271c2
MD5 f3260756facaa2dd387b97060d081867
BLAKE2b-256 0d832a36c8e11e706f06ffd59ea293a26d60631dae054cfbce6a2486a0a35f88

See more details on using hashes here.

File details

Details for the file cites_dds-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: cites_dds-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cites_dds-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 253edb72d54b1a3b461177331fe126974e4d69e620cea64489c371f3b9659f85
MD5 d1a852472b2f34578ec6e9b942e43bee
BLAKE2b-256 f8a3fe67a33e2074d7c4e1cb1bb5961b5b19e6cc6179cdea1b74e6550204f7b7

See more details on using hashes here.

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