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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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