fakesnake

generate fake data


Keywords
data, database, python
License
GPL-3.0
Install
pip install fakesnake==0.0.8

Documentation

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