https://github.com/vin-cento/fakesnake
Do you need to quickly generate a 🎲random dataset to work with? This is the 🔨tool for you! You can generate a quick list of random or quickly populate a 🏬database.
https://github.com/vin-cento/fakesnake
data database python
Last synced: 3 months ago
JSON representation
Do you need to quickly generate a 🎲random dataset to work with? This is the 🔨tool for you! You can generate a quick list of random or quickly populate a 🏬database.
- Host: GitHub
- URL: https://github.com/vin-cento/fakesnake
- Owner: Vin-Cento
- License: gpl-3.0
- Created: 2023-10-11T14:38:14.000Z (over 2 years ago)
- Default Branch: development
- Last Pushed: 2024-03-27T15:30:20.000Z (almost 2 years ago)
- Last Synced: 2025-09-25T10:05:38.230Z (4 months ago)
- Topics: data, database, python
- Language: Python
- Homepage:
- Size: 4.84 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Usages
```bash
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

```bash
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)

```bash
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
```bash
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.
```bash
# alpine
apk add postgres-client postgres-dev
# ubuntu
apt install postgres-client postgres-dev
```
```bash
pip install psycopg2-binary
```
## FAQ
1. Q: Where to report problems?
A: Open up an [issue](https://github.com/Vin-Cento/fakesnake/issues/new)