Skip to main content

Multi-package

Project description

Chaos Worshiper

The chaosWorshiper Python class is a utility for generating JSON metadata files from input files. It processes files in the input folder, generates MD5 hashes, determines chaos-based attributes, and saves the results in the output folder as JSON files.

Features

  • Download Files: Download files from a URL and save them to the input folder.
  • Generate MD5 Hashes: Calculate MD5 hashes for all files in the input folder.
  • Chaos Ritual: Generate chaos-based attributes and stats from MD5 hashes.
  • Save JSON Data: Save the generated metadata to the output folder.
  • Automated Workflow: Use magic_function to process all files in the input folder and generate corresponding JSON files.

Installation

pip install chaosExtractor

How to Use

1. Initialize the Class

Create an instance of the chaosWorshiper class:

from chaosExtractor import chaosWorshiper

chaos = chaosWorshiper()

2. Download Files

Download a file from a URL and save it to the input folder:

chaos.download_file('https://example.com/file.txt')

3. Generate MD5 Hashes

Generate MD5 hashes for all files in the input folder:

hashes = chaos.generate_md5_hashes()
print(hashes)

4. Perform Chaos Ritual

Run the chaos ritual on an MD5 hash to generate stats and metadata:

md5_data = chaos.chaosRitual('aabbccddeeff00112233445566778899')
print(md5_data)

5. Save JSON Metadata

Save the chaos metadata to the output folder:

chaos.save_chaos_json(
    md5_data=md5_data,
    token_id=425,
    name="Chaos token",
    description="Chaos enriched token",
    image_name="425.png",
    custom_attributes={"Origin": "Shadow Realm", "Chaos Rating": 100}
)

6. Automate the Workflow

Use summon_chaos to process all files in the input folder and generate corresponding JSON files in the output folder:

chaos.summon_chaos()

Folder Structure

  • input: Place your input files here, or use download_file to populate this folder.
  • output: The generated JSON metadata files will be saved here.

Notes

  • Ensure the input folder exists and contains files before running magic_function.
  • The JSON output structure can be customized further if needed by modifying the save_chaos_json method.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

chaosextractor-1.0.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

chaosExtractor-1.0.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file chaosextractor-1.0.5.tar.gz.

File metadata

  • Download URL: chaosextractor-1.0.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for chaosextractor-1.0.5.tar.gz
Algorithm Hash digest
SHA256 f1ee72bcf408f80b8fd67848e8b496ed0b7a14e9e669e79f27fe491e5a0bd805
MD5 7c67a93cdc04c8170c94e82affe34372
BLAKE2b-256 75b1dd3ce608560ec0dd9c93ec45df6f12d29919ee0e8a2ef138854c6a299d45

See more details on using hashes here.

File details

Details for the file chaosExtractor-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: chaosExtractor-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for chaosExtractor-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 19bde63cccaeda57724e6e0b6610ccddd7472778ee114a32c4e0dba51a6871a7
MD5 426d41a6fd5bcf196057e1e50846a2e7
BLAKE2b-256 bc5b950964cf7ce7257b1293d3fd85da2b2c1d0a6769574c314ccf37323c65fb

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