Skip to main content

simple large scale data generator

Project description

Geni

ci

Geni helps you generate large-scale datasets.

import geni
from faker import Faker

fake = Faker()

# Create a generator
def generator() -> dict:
    return {
        "name": fake.name(),
        "age": fake.random_int(18, 99),
        "city": fake.city()
    }

geni.generate_file(generator, row=1000, output="data.csv")

The latest version

You can find the latest version to ...

git clone https://github.com/FabienArcellier/geni.git

Usage

Developper guideline

Add a dependency

bash poetry add requests

Install development environment

Use make to instanciate a python virtual environment in ./venv and install the python dependencies.

poetry install

Update release dependencies

Use make to instanciate a python virtual environment in ./venv and freeze dependencies version

poetry update update

Activate the python environment

When you setup the requirements, a venv directory on python 3 is created. To activate the venv, you have to execute :

poetry shell

Run the continuous integration process

Before commit or send a pull request, you have to execute pylint to check the syntax of your code and run the unit tests to validate the behavior.

$ poetry run alfred ci

Contributors

  • Fabien Arcellier

License

MIT License

Copyright (c) 2024-2024 Fabien Arcellier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

gendit-1.0.0a2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

gendit-1.0.0a2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file gendit-1.0.0a2.tar.gz.

File metadata

  • Download URL: gendit-1.0.0a2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for gendit-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 3902f1fa9f2b62a815dac6e5237e3e7ec20bc28747c0f6c5eacdb2b6c561a084
MD5 18ddb9bf9fb2d8d312ef3defa2852330
BLAKE2b-256 f7111529c5388678eb7945e7763fceef416abfabb00c39149d40d52058ba672e

See more details on using hashes here.

File details

Details for the file gendit-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: gendit-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

File hashes

Hashes for gendit-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 b056f638cc806b7a2f6a18966ede56c082d06eed3e881641455cbc6c60fb88fd
MD5 f9f1a642c8a44a493ef1e606354542c8
BLAKE2b-256 f3c767746ad45571927e85a153e5ea99c6a2cf9fbc893e1521c3416a043f8aaf

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