Skip to main content

Sequential ID Generator

This Python program provides a robust solution for generating sequential IDs for various entities. It supports up to a billion IDs per entity with the option to expand further. Additionally, it allows for the deletion and reuse of IDs.

Features

  1. ID Allocation: Allocate up to a billion IDs per entity with the option to expand.
  2. Entity Selection: Choose from the following entities for ID generation:
    • fx: 1 (fx)
    • prices: 2 (hp)
    • static: 3 (sec)
    • index: 4 (idx)
    • benchmarks: 5 (bmrk)
    • holdings: 6 (hld)
    • portfolio: 7 (por)
    • entity: 8 (ent)
    • other:0 (oth)
  3. ID Deletion and Reuse: Option to delete an ID and have it reused.

Installation

Ensure that you have SLITE_DB_PATH environment variable set. If not it'll store in profile and wont be persistent if you have concurrent users.

Usage

It has a class and multiple methods

  1. Classes

    • guidgen : All methods of the program are written here
  2. Methods

    • generate_id() : Creates the sqlite database for persistent storage
    • drop_id() : Checks if the table exists
    • logger() : Creates new table, if table doesn't exist in database
  3. Examples

    • get a unique master id - guidgen.generate_id("fx").masterId
    • get a unique numeric id - guidgen.generate_id("fx").numericId
    • drop a numeric id - guidgen.drop_id(21,"fx")
    • get a log details - guidgen.generate_id("fx").logOuput.stdout_log/stderr_log

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

Contact

For any questions or suggestions, please contact infra@daedal.org.

Metadata

Release files for daedal-persistentidgenerator 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for daedal-persistentidgenerator 1.1.5
File Size Uploaded Provenance Actions
daedal_persistentidgenerator-1.1.5.tar.gz 15.3 kB Without provenance Details for daedal_persistentidgenerator-1.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for daedal-persistentidgenerator 1.1.5
File Interpreter ABI Platform Actions
daedal_persistentidgenerator-1.1.5-py3-none-any.whl Python 3 none any Details for daedal_persistentidgenerator-1.1.5-py3-none-any.whl

Total release size: 32.3 kB

Release files / daedal_persistentidgenerator-1.1.5.tar.gz

Download URL daedal_persistentidgenerator-1.1.5.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
70d47e3cbd6c4d5f3f91378354569c6c94f98799d04e6ea9ce2641a14a9afd64
BLAKE2b-256 checksum
How to use checksums
b13ca94fd788ad05a4d36928ccac6a997125a6a3d811fa8256916cc1e9501f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / daedal_persistentidgenerator-1.1.5-py3-none-any.whl

Download URL daedal_persistentidgenerator-1.1.5-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
350c25aaedcbef1605721fddfc8688b5018e2b422eeaa411a957b74d91114e10
BLAKE2b-256 checksum
How to use checksums
ef0ad00a7525e8d6a1a5fc58dde9fc1fd6fb08bb99e0d20f81621e517dda8cc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for daedal-persistentidgenerator 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page