Skip to main content

igenerator

igenerator is a python package that allows you to generate psudo random numbers and write them to a CSV file or SQLite database with just a few lines of code. The package utilizes the JAX function which is based on the C++ library random123. These functions are designed to be fast and efficient, and are suitable for use in machine learning applications.

Installation

You can install the package using pip:

pip install igenerator

Usage

To use the package, you first need to import it:

from igenerator import LiveGenerator

Then, you can create an instance of the TrueGenerator class:

generator = LiveGenerator()
or
generator = LiveGenerator(0) # Pass a optional parameter (i.e any integer ) to set the seed val.

You can use the randomInt() method to generate a list of random integers within a certain range:

result = generator.randomInt(2, 15, 4)

The above code will generate a list of 4 random integers between 2 and 15 (inclusive).

You can then use the writeCsv() method to write the list of random numbers to a CSV file:

generator.writeCsv(result, 'your_csv_name.csv')

Note

Before writing into a csv file remember to create one with desired headers.

And use the writeSql() method to write the list of random numbers to a SQLite database:

table_name = "your_table_name"
generator.writeSql(result,'your_database_name.db',table_name)

Note

Before writing into a sqlite database remember to create a table with desired headers.

Example :

from igenerator.generate import LiveGenerator

generator = LiveGenerator()
result = generator.randomInt(2,15,4) # For float values use randomFloat

generator.writeCsv(result,'your_csv_name.csv')

table_name = "your_table_name"
generator.writeSql(result,'your_database_name.db',table_name)

License

This package is released under the MIT License.

Metadata

Release files for igenerator 0.0.2

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

Source distribution (sdist)

Source distribution for igenerator 0.0.2
File Size Uploaded Provenance
igenerator-0.0.2.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for igenerator 0.0.2
File Interpreter ABI Platform
igenerator-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / igenerator-0.0.2.tar.gz

Download URL igenerator-0.0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2d9fc4ec147e9ea630a332e3629576a239e039de509393229b01a280b4355b29
BLAKE2b-256 checksum
How to use checksums
86ec14e8801fa70001eecab5f4125db45116a778a7f41e43faabb2e90e7a4199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / igenerator-0.0.2-py3-none-any.whl

Download URL igenerator-0.0.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0bb19ca9b87544f48421d41bb58222ea5345cb7ab040974740da5765baa0b47
BLAKE2b-256 checksum
How to use checksums
04a71d3781e85dfcd2f88e7a9b7d8c872e46884345aa5eff1dcf9d706ac1c179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for igenerator 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 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