Skip to main content

Random Content Generator

Project description

urso :bear:

Generate random text, audio, images, and videos

Urso is a Python library and console application for generating random content. It provides functionalities for generating random text, audio, images, and videos with customizable parameters. Whether you need dummy content for testing, placeholder media, or random data generation, Urso has got you covered.

Features

  • Generate Text: Create random text of a specified number of words.
  • Generate Audio: Generate audio with random noise for a given duration.
  • Generate Image: Create an image with noise of a specified width and height.
  • Generate Video: Produce a video of a given duration and resolution.

Installation

Use pip to install the urso package:

pip install urso

Getting Started

To use Urso in your Python project, simply import the library and call the relevant functions for generating the desired content.

To generate content via the console app, execute the appropriate command with the desired parameters.

For programmatic access, interact with the Flask server's API endpoints to generate content on the fly.

Usage

The project consists of three main components:

  1. Library
  2. Console App
  3. Flask API (Coming soon!)

Library

The core functionality is implemented as a Python library. It provides functions to generate random content in different formats.

  • Generate a random text file with 500 words:
from urso.core.text_generator import generate_text, save_text

text = generate_text(500)
save_text(text, 'test_text.txt')
  • Generate a 5-second audio file:
from urso.core.audio_generator import generate_audio, save_audio

audio, _ = generate_audio(5)
save_audio(audio, "test_audio.wav")
  • Generate a 1080x720 pixel image:
from urso.core.image_generator import generate_image, save_image

image = generate_image(1080, 720)
save_image(image, "test_image.png")
  • Generate a 5-second 1080x720 pixel video:
from urso.core.video_generator import generate_video, save_video

video, _, _, _ = generate_video(5.0, 1080, 720, 30)
save_video(video, "test_video.mp4", 30)

Console App

A command-line interface is available to generate individual content items. The console app allows users to specify the desired parameters and output file for each content type.

  • Generate a random text file with 500 words:
urso --generate-text 500
  • Generate a 5-second audio file:
urso --generate-audio 5
  • Generate a 1080x720 pixel image:
urso --generate-image 1080 720
  • Generate a 5-second 1080x720 pixel video:
urso --generate-video 5 1080 720

Flask Server

A Flask server exposes RESTful APIs to generate content programmatically. It provides endpoints for generating text, audio, images, and videos with customizable parameters.

(Coming soon!)

Contributing

Contributions to Urso are welcome! Whether it's adding new content generation features, improving existing functionality, or enhancing the documentation, feel free to submit pull requests.

Please refer to the contribution guidelines and code of conduct for more information.

License

Urso is released under the MIT License. See the LICENSE file for more details.


Feel free to modify and expand upon this project description to suit your specific needs and project details.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urso-1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

urso-1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file urso-1.0.tar.gz.

File metadata

  • Download URL: urso-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for urso-1.0.tar.gz
Algorithm Hash digest
SHA256 9631fbe5e843f098a1cc30b14b83a765a3b3f2b567c8a170854fc5f34385fc57
MD5 e56b321bd77c3ca7ff9da6b1577c2357
BLAKE2b-256 8d20b01ac39facd0e24895fb2b4e15cb9c25fe8cc0e9cfa159f43929fa80eebf

See more details on using hashes here.

File details

Details for the file urso-1.0-py3-none-any.whl.

File metadata

  • Download URL: urso-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for urso-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d22fe92d009e0527be970b1e82b4b9569cf0f079dc67e93d71dce0437c4b8ce5
MD5 e984544f068f762a1fd5438cfd46d4d0
BLAKE2b-256 6d8b0c5d0551b46030bd95594672ee87a26dd30bfcad772e6bae1f056d3d83af

See more details on using hashes here.

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