Skip to main content

A package for generating meaningful placeholder content.

Project description

fillplace

____________


A Python package for generating meaningful placeholder content.

Installation

pip install fillplace

Usage

from fillplace import PlaceholderManager

pm = PlaceholderManager()

print(pm.city())

Available methods

city()
fullname()
malename()
femalename()
indianaddress()
internationaladdress()
phone()
dateofbirth()
password()
country()
internationalcity()
indiancity()
indianstate()

Usage for developers

  • The fillplace package can be a valuable tool for developers in various scenarios where they need to generate meaningful placeholder content quickly and efficiently. Here are some use cases where developers can leverage the functionalities provided by the fillplace package

1.Test Data for Database Population:

  • When setting up databases for testing purposes, developers may need to populate them with test data. The fillplace package provides a convenient way to generate diverse and realistic test data for populating databases.
from fillplace import PlaceholderManager
import sqlite3

pm = PlaceholderManager()

# Connect to SQLite database
conn = sqlite3.connect('test.db')
cursor = conn.cursor()

# Create a table
cursor.execute('''CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, password TEXT)''')

# Insert test data
for _ in range(10):
    name = pm.malename()
    password = pm.password()
    cursor.execute('''INSERT INTO users (name, password) VALUES (?, ?)''', (name, password))

# Commit changes and close connection
conn.commit()
conn.close()

2. Content Placeholder for Prototypes:

  • During the early stages of application development, developers often create prototypes or wireframes that require placeholder content. With the fillplace package, developers can easily populate their prototypes with realistic placeholder content.
from fillplace import PlaceholderManager

pm = PlaceholderManager()
print(f"Welcome to {pm.city()}, {pm.name()}!")

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

fillplace-1.0.0.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

fillplace-1.0.0-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file fillplace-1.0.0.tar.gz.

File metadata

  • Download URL: fillplace-1.0.0.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.5

File hashes

Hashes for fillplace-1.0.0.tar.gz
Algorithm Hash digest
SHA256 97ef6537473b04c7ff85e8f563e01189fa5a6a6296fef0613af2aed632cd6501
MD5 4c77febe59c8a2b376fb7c9612f332a0
BLAKE2b-256 e9a1609b3e0756bc0a458f716c5a246b66047c4f9a369d4b32e20acadd7d6176

See more details on using hashes here.

File details

Details for the file fillplace-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fillplace-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.5

File hashes

Hashes for fillplace-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14d9851e2c1c46a3712276d53fd2d509bc03d749ab1005ce64bbcdf1802cf47f
MD5 07e2296f4b75a4ff46a71fc76ce3fb8e
BLAKE2b-256 cc9671925bedf3b237d2094080c886265dc232d6ed9c5267b351bcb4a0bcb07e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page