Skip to main content

generate fake data

Project description

FakeSnake_Logo

Usages

fakes --help
Usage: fakes [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  db   subcommand for database interaction
  gen  subcommand for generating data

Generate Fake Data

generate demo

fakes gen --help
Usage: fakes gen [OPTIONS] COMMAND [ARGS]...

  subcommand for generating data

Options:
  --help  Show this message and exit.

Commands:
  address   generate a list of address
  email     generate a list of email
  geojson   generate a list of geojson
  name      generate a list of name
  number    generate a list of number
  password  generate a list of password
  shape     generate a list of shape
  text      generate a list of text

Insert Fake Data to Database

(*postgres only... other databases coming soon)

insert demo

fakes db --help
Usage: fakes db [OPTIONS] COMMAND [ARGS]...

  subcommand for database interaction

Options:
  --help  Show this message and exit.

Commands:
  config    show the database config
  describe  describe the current database
  exec      execute a sql command
  insert    insert random data into table
  table     show all columns the table
  tables    show all tables the database

Install

pip install fakesnake

Postgres

Need to have the psycopg2-binary to connect to POSTGRES server. To install it, you need install postgres-client and postgres-dev.

# alpine
apk add postgres-client postgres-dev

# ubuntu
apt install postgres-client postgres-dev
pip install psycopg2-binary

FAQ

  1. Q: Where to report problems?

    A: Open up an issue

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fakesnake-0.0.8-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file fakesnake-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: fakesnake-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for fakesnake-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 510076db5f422a978a55ea2aa23970dad315d56ee2c35369cd87a0748e84db84
MD5 213c48cb8ceae1cbe7c0906a73b480b9
BLAKE2b-256 aea0c14486f2acbd2775686cbc87d68526860873c06c5bb831db6f54b7f17dcd

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