Skip to main content

Convert IDs into human-readable labels.

Project description

ID Translation

Convert IDs to human-readable labels.


PyPI - Version PyPI - Python Version Tests Codecov Read the Docs PyPI - License Black pre-commit

What is it?

A package suite for translating integer IDs typically found in databases. Translation is highly configurable and tested for multiple different SQL dialects and schema naming paradigms. This is configurable using TOML, allowing power users to specify shared configurations that "just work" for other users; see the snippet below.

from id_translation import Translator

translator = Translator.load_persistent_instance("/mnt/companyInc/id-translation/config.toml")
print(
  "The first employee at Company Inc was:", 
  translator.translate(1, names="employee_id"),
)

A function to create Translator instances that "just work".

Highlighted Features

Installation

The package is published through the Python Package Index (PyPI). Source code is available on GitHub: https://github.com/rsundqvist/id-translation

pip install -U id-translation

This is the preferred method to install id-translation, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

License

MIT

Documentation

Hosted on Read the Docs: https://id-translation.readthedocs.io

Contributing

All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. To get started, see the Contributing Guide and Code of Conduct.

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

id_translation-0.2.0.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

id_translation-0.2.0-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

Details for the file id_translation-0.2.0.tar.gz.

File metadata

  • Download URL: id_translation-0.2.0.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for id_translation-0.2.0.tar.gz
Algorithm Hash digest
SHA256 19b83a629c1dea667446e75d543fa0c48b4926dd0be889e545de6d04584b024f
MD5 6adff106888da3f3fef02a1ba3d26e4c
BLAKE2b-256 d3be79734ff691393ce8c3cdcad200c30f4e600e22b87eef13b9d83f016caf9a

See more details on using hashes here.

File details

Details for the file id_translation-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: id_translation-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for id_translation-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 402c51c56c3d3a3b4b29e5c11ceb9d55b9392074321091c8b110102d74a9b884
MD5 10072f429e1d5e021b831920aefe60fd
BLAKE2b-256 c955f574be6091924fdac6364445fc93d3202ed82987248a5e08a67d7fa019f6

See more details on using hashes here.

Supported by

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