Skip to main content

fake-py-django-storage

Django storage for fake.py.

PyPI Version Supported Python versions Build Status Documentation Status MIT Coverage

fake-py-django-storage is a Django storage integration for fake.py - a standalone, portable library designed for generating various random data types for testing.

Features

Prerequisites

Python 3.9+

Installation

pip install fake-py-django-storage

Documentation

Usage

FileSystemStorage of Django

from fake import FAKER
from fakepy.django_storage.filesystem import DjangoFileSystemStorage

STORAGE = DjangoFileSystemStorage(
    root_path="tmp",  # Optional
    rel_path="sub-tmp",  # Optional
)

pdf_file = FAKER.pdf_file(storage=STORAGE)

STORAGE.exists(pdf_file)

AWS S3 (using django-storages)

from fake import FAKER
from fakepy.django_storage.aws_s3 import DjangoAWSS3Storage

STORAGE = DjangoAWSS3Storage(
    root_path="tmp",  # Optional
    rel_path="sub-tmp",  # Optional
)

pdf_file = FAKER.pdf_file(storage=STORAGE)

STORAGE.exists(pdf_file)

Google Cloud Storage (using django-storages)

from fake import FAKER
from fakepy.django_storage.google_cloud_storage import (
    DjangoGoogleCloudStorage,
)

STORAGE = DjangoGoogleCloudStorage(
    root_path="tmp",  # Optional
    rel_path="sub-tmp",  # Optional
)

pdf_file = FAKER.pdf_file(storage=STORAGE)

STORAGE.exists(pdf_file)

Azure Cloud Storage (using django-storages)

from fake import FAKER
from fakepy.django_storage.azure_cloud_storage import (
    DjangoAzureCloudStorage,
)

STORAGE = DjangoAzureCloudStorage(
    root_path="tmp",  # Optional
    rel_path="sub-tmp",  # Optional
)

pdf_file = FAKER.pdf_file(storage=STORAGE)

STORAGE.exists(pdf_file)

Tests

pytest

Writing documentation

Keep the following hierarchy.

=====
title
=====

header
======

sub-header
----------

sub-sub-header
~~~~~~~~~~~~~~

sub-sub-sub-header
^^^^^^^^^^^^^^^^^^

sub-sub-sub-sub-header
++++++++++++++++++++++

sub-sub-sub-sub-sub-header
**************************

License

MIT

Support

For security issues contact me at the e-mail given in the Author section.

For overall issues, go to GitHub.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

Metadata

Release files for fake-py-django-storage 0.1.2

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

Source distribution (sdist)

Source distribution for fake-py-django-storage 0.1.2
File Size Uploaded Provenance Actions
fake_py_django_storage-0.1.2.tar.gz 32.8 kB Without provenance Details for fake_py_django_storage-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fake-py-django-storage 0.1.2
File Interpreter ABI Platform Actions
fake_py_django_storage-0.1.2-py3-none-any.whl Python 3 none any Details for fake_py_django_storage-0.1.2-py3-none-any.whl

Total release size: 46.3 kB

Release files / fake_py_django_storage-0.1.2.tar.gz

Download URL fake_py_django_storage-0.1.2.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c6fa93c51b7ff0ea4ea04060cead87e959174571c7d5a5739892d0bffc625a54
BLAKE2b-256 checksum
How to use checksums
55cef748f3fd5c408aa58747f45de417ddc53017278bdb1a9a1bbe9216cc92a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / fake_py_django_storage-0.1.2-py3-none-any.whl

Download URL fake_py_django_storage-0.1.2-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6f4f30ad641337ca3c8a48485b733009928f8ec3bed74ae42c7cebaa515a833
BLAKE2b-256 checksum
How to use checksums
d28012ffe9d6064de83a7761573c11764ac838a6155b6395166252f70108751b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for fake-py-django-storage 0.1.2

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