Skip to main content

tidas-tools

Project description

TianGong TIDAS Toolbox

Env Preparing

Using Ubuntu

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install -y python3.12

sudo apt install libxml2-dev libxslt-dev
sudo apt-get install build-essential python3-dev


sudo apt upgrade

Using Poetry

curl -sSL https://install.python-poetry.org | python3 -

poetry env activate

poetry env info

poetry lock
poetry install

Auto Build

The auto build will be triggered by pushing any tag named like release-v$version. For instance, push a tag named as v0.0.1 will build a docker image of 0.0.1 version.

#list existing tags
git tag
#creat a new tag
git tag v0.0.1
#push this tag to origin
git push origin v0.0.1

Lint and Format

black .

Run Test

python src/tidas_tools/convert.py -i test_data/converted_json/data/ -o test_data/converted_xml --to-eilcd
python src/tidas_tools/convert.py -i test_data/published_xml/ -o test_data/converted_json/ --to-tidas

python src/tidas_tools/validate.py -i test_data/converted_json/data/

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

tidas_tools-0.0.3.tar.gz (269.5 kB view details)

Uploaded Source

Built Distribution

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

tidas_tools-0.0.3-py3-none-any.whl (310.5 kB view details)

Uploaded Python 3

File details

Details for the file tidas_tools-0.0.3.tar.gz.

File metadata

  • Download URL: tidas_tools-0.0.3.tar.gz
  • Upload date:
  • Size: 269.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tidas_tools-0.0.3.tar.gz
Algorithm Hash digest
SHA256 38697cfbe0625dc5161d29a9395f7e0e00d6ff24fd7c3264a1f15e426d88a962
MD5 1cd3060033e1b0240d6ec077d6746e81
BLAKE2b-256 45c3e7693c65fa9637af5ad4eae7bbdb436efa3ebeaead24061b644bf439fd30

See more details on using hashes here.

File details

Details for the file tidas_tools-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tidas_tools-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 310.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for tidas_tools-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b144eca3aaee52c65426333572bb33ee0d234a37c6816bf5d36e7c98c3439ee
MD5 3ef276281e6d9826819336fa2d295ab0
BLAKE2b-256 63d463ebe1ac768edbc14f5ab9453440f52ce0ad9708f394821c1025d17fd90d

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