Skip to main content

A streaming CLI tool to *mob*(fills) SQL/MariaDB databases with mock data, built on Faker and designed for both flexibility and scale.

Project description

tfm

A set of tools to quick up MySql/MariaDB table prototyping

Installation:

$ pip install mob-tfm

Usage:

$ tfm [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • version: Show the current version of Mob TFM.
  • unspine: 'Unspine'/print the doc of a list of tfm...
  • doctor: Show information about Mob TFM.
  • parse: fill a mariaDB/MySQL database table with...
  • generate: fill a mariaDB/MySQL database table with...
  • config: Create or Edit the configuration for...
  • explain: Open and page the documentation for one or...

tfm version

Show the current version of Mob TFM.

Usage:

$ tfm version [OPTIONS]

Options:

  • --help: Show this message and exit.

tfm unspine

'Unspine'/print the doc of a list of tfm generators inside of a pager (alternative screen)

Usage:

$ tfm unspine [OPTIONS] GENERATORS

Arguments:

  • GENERATORS: [required]

Options:

  • -p / --pretty: force activation markdown styling/ may cause issue on old terminals
  • --help: Show this message and exit.

tfm doctor

Show information about Mob TFM. Can be considered as a 'about' command.

Usage:

$ tfm doctor [OPTIONS]

Options:

  • --help: Show this message and exit.

tfm parse

fill a mariaDB/MySQL database table with data contained in a csv file.

Usage:

$ tfm parse [OPTIONS] FILE

Arguments:

  • FILE: [required]

Options:

  • -u, --user TEXT: Database user name
  • -P, --password TEXT: Database user password
  • -d, --database TEXT: Database name
  • -t, --table TEXT: The Database Table to target
  • -h, --host TEXT: The Databse host [default: localhost]
  • -p, --port INTEGER: The database port [default: 3306]
  • -r, --rows INTEGER: Number of rows to read (negative for all lines) [default: 20]
  • --preview-only / --no-preview-only: If --preview tfm won't try to fill the table, only preview them. [default: no-preview-only]
  • --help: Show this message and exit.

tfm generate

fill a mariaDB/MySQL database table with fake data based on a format string.

Usage:

$ tfm generate [OPTIONS] FORMAT

Arguments:

  • FORMAT: [required]

Options:

  • -s, --seed INTEGER: Seed for the random generator.
  • -u, --user TEXT: Database user name.
  • -P, --password TEXT: Database user password.
  • -d, --database TEXT: Database name.
  • -t, --table TEXT: Database table name.
  • -h, --host TEXT: Database host. [default: localhost]
  • -p, --port INTEGER: Database port. [default: 3306]
  • --optimized / --no-optimized: Use optimized generation methods. [default: no-optimized]
  • -r, --rows INTEGER: Number of rows to generate. [default: 20]
  • --help: Show this message and exit.

tfm config

Create or Edit the configuration for better use of tfm.

Usage:

$ tfm config [OPTIONS]

Options:

  • -v, --view: View current configuration
  • --help: Show this message and exit.

tfm explain

Open and page the documentation for one or more commands from docs/commands/README.<command>.md.

Usage:

$ tfm explain [OPTIONS] COMMANDS

Arguments:

  • COMMANDS: [required]

Options:

  • -p / --pretty: force activation markdown styling/ may cause issue on old terminals.
  • --help: Show this message and exit.

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

mob_tfm-0.2.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

mob_tfm-0.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file mob_tfm-0.2.0.tar.gz.

File metadata

  • Download URL: mob_tfm-0.2.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1

File hashes

Hashes for mob_tfm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 32a300291b453eb18fb533cf75ea9b9076e7d4f8c39edecf9dee4ee23ce8fc0e
MD5 ebf8c59c6baecf2d3e4a572ee7a8b26c
BLAKE2b-256 61ac6abce2e1d0cff8be5087bb5a10704011e7f400da11b11b3633d4d396dad8

See more details on using hashes here.

File details

Details for the file mob_tfm-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mob_tfm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.17.9-arch1-1

File hashes

Hashes for mob_tfm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8185c62826e53a6eede30a44dc811bb2edf075d639177d82f5b6e81bc8ad90
MD5 8045d50db0249645bb82c5bdc62ea70b
BLAKE2b-256 3b96c5117c352ce59a24cac58f935482b581d507f019aa70425a3f36240b9e1c

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