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.2.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.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cites_dds-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d3765fda1c36713c81081b4c08179030eaa8e962f38488be23b7980211bd943a
MD5 7974b3febdad40eb74634f98f073631f
BLAKE2b-256 bdd761f76a5f7a50d4bac06f923231a9627fcb13573a1a87ef1545ed905bbc23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cites_dds-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c02e5142fe277b480c2497c807f5b99a5bb65f37b36005c4309dc735882ab37
MD5 8cd2d8994e1ac96a8d4c025d686fc2c7
BLAKE2b-256 c7d94d937f927b5aa5ae415a4e13723102151add69be7a15a58d6e435eeebb1d

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