Skip to main content

Interactive TUI database seeder

Project description

Copia logo

Copia

CI PyPI Python License Docs Ruff


Seed your database without the hassle.

Most frameworks either ship a seeder with questionable decisions, or don't ship one at all. Copia is a TUI-based database seeder with its own declarative language — you describe what data you want, column by column, and Copia generates and inserts it.

id:         uuid()
username:   username()
email:      email(safe=True)
role:       enum('admin', 'editor', 'viewer')
created_at: past_date()

Features

  • Simple language — if you know what a function call looks like, you know the Copia DSL
  • Realistic data — built on Faker, 25+ generators out of the box
  • Relational-awareref('table.column') samples from existing rows, so foreign keys just work
  • Interactive TUI — write, preview, and insert without leaving your terminal
  • Extensible — add your own generators with a single function

Installation

pip install copia

Requires Python 3.13+. MySQL and MariaDB are supported.

Quickstart

copia init       # generate a config template
copia            # launch the TUI

Documentation

the official copia documentation is available here


License

MIT

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

copia_seed-0.1.0.tar.gz (136.1 kB view details)

Uploaded Source

Built Distribution

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

copia_seed-0.1.0-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file copia_seed-0.1.0.tar.gz.

File metadata

  • Download URL: copia_seed-0.1.0.tar.gz
  • Upload date:
  • Size: 136.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for copia_seed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e4c43b21af20f685b9c31bc8abd345d7c024a168243930acecad9838253231a
MD5 0e5d952ef4d49379f4c265e4fc0a743b
BLAKE2b-256 9917d9a2a2cd8cd6e879b88877bbfecf9c493134acfc388023ecb9330160ca93

See more details on using hashes here.

Provenance

The following attestation bundles were made for copia_seed-0.1.0.tar.gz:

Publisher: release.yml on gitmobkab/copia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file copia_seed-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: copia_seed-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for copia_seed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 275b705d655d07ab5720edc8485e13bae4628d70b6bdccc441aeb6b0eadb1bd3
MD5 d5243e4b2debcc6d3e38824f131b8fd5
BLAKE2b-256 d9d85d83eca7bc67a724a5ef26aa9bf49321419818d46caf32ae29227d9569a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for copia_seed-0.1.0-py3-none-any.whl:

Publisher: release.yml on gitmobkab/copia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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