Skip to main content

Utility for find, extract, exchange and permutate uuids in string and pandas series

Project description

UUIDTools

UUIDTools is a tiny toolkit for working with uuids inside pandas dataframes or series, this toolkit will help you to extract uuids from string (normalized and not normalized) databases, and also permutate the ids into new ones preserving all the relations between diffrent tables.

Requierments:

Python 3 uuid

Installation:

pip install UUIDTools

Usage and use case:

The usecase of this tool is mainly to copy SQL based tables with relations, having two tables that you want to copy and export or reinsert but with different ids:

ID parent ID
2d452c66-7ede-403e-8b72-fe02d8bd24ed d009237f-1899-421a-b2d1-21fa3f7c3103
2d452c66-7ede-403e-8b72-fe02d8bd24ed edb66645-fef8-4359-b0e8-097868ed0747
9d044ff0-1c81-4bb8-b15b-33e60abfcc9c f22fd493-fcd5-46ac-9014-3a4b1a96b4f2
ID (Parent) Name
d009237f-1899-421a-b2d1-21fa3f7c3103 Person 1
edb66645-fef8-4359-b0e8-097868ed0747 Person 2
f22fd493-fcd5-46ac-9014-3a4b1a96b4f2 Person 3

If you need to generate new ids but you want to preserve the relations you can not generate new random ids, this library will use the previous id as a seed for the next id generation

IDs
d009237f-1899-421a-b2d1-21fa3f7c3103, something that is not id, d009237f-1899-421a-b2d1-21fa3f7c3103
d980ce44-c8c3-4eb6-8e4c-1dbaed891c21
f22fd493-fcd5-46ac-9014-3a4b1a96b4f2, d4b8fb9f-c048-4a60-8860-9b0edff0d838, bla bla

Using this tool you can easily get the uuids contained:

IDs
{d009237f-1899-421a-b2d1-21fa3f7c3103}
{d980ce44-c83c-4eb6-8e4c-1dbaed891c21}
{f22fd493-fcd5-46ac-9014-3a4b1a96b4f2,d980ce44-c8c3-4eb6-8e4c-1dbaed891c21}

Which is the set of the uuids above.

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

UUIDTools-0.1.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

UUIDTools-0.1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file UUIDTools-0.1.4.tar.gz.

File metadata

  • Download URL: UUIDTools-0.1.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for UUIDTools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 53db3bea67879f967791828ae629e443df9255b41539a05ff4f0e173bce0c837
MD5 d8649db9dfbea0fdf47e66f3f47be0a8
BLAKE2b-256 6da9a781b65052421b1be5b166282869f6ee43802a4048657cac0b2f3d8c3fe4

See more details on using hashes here.

File details

Details for the file UUIDTools-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: UUIDTools-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for UUIDTools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 771ab5f765dc552fed54f35bec188163d658946c7e9b12e3866181e75b2e3ef7
MD5 8850d7ccffe87ed8ce2920c97c1ecf99
BLAKE2b-256 f10e20c3df52d47bbdb4fa2663f1ec79452b86a5ade9e9b61e593710ec7371c8

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