All Projects → emirozer → Fake2db

emirozer / Fake2db

Licence: gpl-2.0
Generate fake but valid data filled databases for test purposes using most popular patterns(AFAIK). Current support is sqlite, mysql, postgresql, mongodb, redis, couchdb.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Fake2db

Bogus
📇 A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Stars: ✭ 5,083 (+140.56%)
Mutual labels:  faker, database, data
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (-68.15%)
Mutual labels:  faker, database, data
Graph
Graph is a semantic database that is used to create data-driven applications.
Stars: ✭ 855 (-59.54%)
Mutual labels:  database, data
Faker.js
generate massive amounts of realistic fake data in Node.js and the browser
Stars: ✭ 34,329 (+1524.66%)
Mutual labels:  faker, fake-content
Deveeldb
DeveelDB is a complete SQL database system, primarly developed for .NET/Mono frameworks
Stars: ✭ 80 (-96.21%)
Mutual labels:  database, data
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+1168.48%)
Mutual labels:  database, data
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+1247.8%)
Mutual labels:  database, data
Locopy
locopy: Loading/Unloading to Redshift and Snowflake using Python.
Stars: ✭ 73 (-96.55%)
Mutual labels:  database, data
Tensorbase
TensorBase BE is building a high performance, cloud neutral bigdata warehouse for SMEs fully in Rust.
Stars: ✭ 440 (-79.18%)
Mutual labels:  database, data
Awesome Bigdata
A curated list of awesome big data frameworks, ressources and other awesomeness.
Stars: ✭ 10,478 (+395.88%)
Mutual labels:  database, data
Datastore
🐹 Bloat free and flexible interface for data store and database access.
Stars: ✭ 99 (-95.31%)
Mutual labels:  database, data
Mhworlddata
Generate a SQLite file from MHW data
Stars: ✭ 110 (-94.79%)
Mutual labels:  database, data
Octo Cli
CLI tool to expose data from any database as a serverless web service.
Stars: ✭ 653 (-69.1%)
Mutual labels:  database, data
Mithril Data
A rich data model library for Mithril javascript framework
Stars: ✭ 17 (-99.2%)
Mutual labels:  database, data
Kotlin Faker
Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
Stars: ✭ 136 (-93.56%)
Mutual labels:  faker, data
Django Databrowse
Databrowse is a Django application that lets you browse your data.
Stars: ✭ 41 (-98.06%)
Mutual labels:  database, data
Samples
Sample projects using Material, Graph, and Algorithm.
Stars: ✭ 386 (-81.73%)
Mutual labels:  database, data
Datacleaner
The premier open source Data Quality solution
Stars: ✭ 391 (-81.5%)
Mutual labels:  database, data
Nycdb
Database of NYC Housing Data
Stars: ✭ 94 (-95.55%)
Mutual labels:  database, data
Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-93.89%)
Mutual labels:  database, data

Screenshot


Latest Version Status

About

Generate fake but valid data filled databases for test purposes using most popular patterns(AFAIK). Current support is sqlite, mysql, postgresql, mongodb, redis, couchdb.

Installation

The installation through pypi retrieves 'fake-factory' as a main dependency.

pip install fake2db

Optional requirements

PostgreSQL
pip install psycopg2

For psycopg2 to install you need pg_config in your system.

On Mac, the solution is to install postgresql:

brew install postgresql

On CentOS, the solution is to install postgresql-devel:

sudo yum install postgresql-devel

Mongodb

pip install pymongo

Redis

pip install redis

MySQL

mysql connector is needed for mysql db generation:

http://dev.mysql.com/downloads/connector/python/

CouchDB

pip install couchdb

Usage

--rows argument is pretty clear :) integer

--db argument takes 6 possible options : sqlite, mysql, postgresql, mongodb, redis, couchdb

--name argument is OPTIONAL. When it is absent fake2db will name db's randomly.

--host argument is OPTIONAL. Hostname to use for database connection. Not used for sqlite.

--port argument is OPTIONAL. Port to use for database connection. Not used for sqlite.

--username argument is OPTIONAL. Username for the database user.

--password argument is OPTIONAL. Password for database user. Only supported for mysql & postgresql.

--locale argument is OPTIONAL. The localization of data to be generated ('en_US' as default).

--seed argument is OPTIONAL. Integer for seeding random generator to produce the same data set between runs. Note: uuid4 values still generated randomly.

fake2db --rows 200 --db sqlite

fake2db --rows 1500 --db postgresql --name test_database_postgre

fake2db --db postgresql --rows 2500 --host container.local --password password --user docker

fake2db --rows 200 --db sqlite --locale cs_CZ --seed 1337

In addition to the databases supported in the db argument, you can also run fake2db with FoundationDB SQL Layer. Once SQL Layer is installed, simply use the postgresql generator and specify the SQL Layer port. For example:

fake2db --rows --db postgresql --port 15432

Custom Database Generation

If you want to create a custom db/table, you have to provide --custom parameter followed by the column item you want. At the point in time, i mapped all the possible column items you can use here:

https://github.com/emirozer/fake2db/blob/master/fake2db/custom.py

Feed any keys you want to the custom flag:

fake2db.py --rows 250 --db mysql --username mysql --password somepassword --custom name date country

fake2db.py --rows 1500 --db mysql --password randompassword --custom currency_code credit_card_full credit_card_provider

fake2db.py --rows 20 --db mongodb --custom name date country

Sample output - SQLite

Screenshot

Screenshot

Screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].