Skip to main content

Fakers for SQLAlchemy

PyPI Supported Python versions Documentation Downloads

SQLAlchemy Faker is a provider for the Faker library that helps populate SQLAlchemy ORM models with dummy data. Creating a new instance of a model can be as simple as calling fake.sqlalchemy_model(SomeModel).

Installation

The recommend way to install SQLAlchemy Faker is with pip:

pip install faker_sqlalchemy

Example

Say you have some model declared using SQLAlchemy’s ORM.

>>> class SomeModel(Base):
...     __tablename__ = "some_model"
...
...     id = Column(Integer, primary_key=True)
...
...     value = Column(String)

And, you want to easily generate some data,

>>> from faker_sqlalchemy import SqlAlchemyProvider
>>>
>>> fake = Faker()
>>> fake.add_provider(SqlAlchemyProvider)
>>>
>>> instance = fake.sqlalchemy_model(SomeModel)

Use instance as desired.

>>> print(instance.value)
RNvnAvOpyEVAoNGnVZQU

Release files for faker_sqlalchemy 0.10.220813

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faker_sqlalchemy 0.10.220813
File Size Uploaded Provenance Actions
faker_sqlalchemy-0.10.220813.tar.gz 10.4 kB Without provenance Details for faker_sqlalchemy-0.10.220813.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faker_sqlalchemy 0.10.220813
File Interpreter ABI Platform Actions
faker_sqlalchemy-0.10.220813-py3-none-any.whl Python 3 none any Details for faker_sqlalchemy-0.10.220813-py3-none-any.whl

Total release size: 16.0 kB

Release files / faker_sqlalchemy-0.10.220813.tar.gz

Download URL faker_sqlalchemy-0.10.220813.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
31d58f0fb42d913fc3a525514b7bfe8ce83eabf59b088e8d181866d3a9854914
BLAKE2b-256 checksum
How to use checksums
a23558186ae77e7f9a1a216254f8d1a9fce9aa4c9ec990b5c1e162eca27a285a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / faker_sqlalchemy-0.10.220813-py3-none-any.whl

Download URL faker_sqlalchemy-0.10.220813-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83d57254d3fb1a48393e0d1061c5ca89382fe4456b126129b7422c5538747bdb
BLAKE2b-256 checksum
How to use checksums
a72eaab724d4a1aaa1125cca12df477e07c63c98db28573784665e0cbefa3984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Security for faker_sqlalchemy 0.10.220813

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page