Skip to main content

A lightweight Python utility module for config loading, writing, and safe exits.

Project description

Utilyx

A lightweight Python utility module providing simple helpers for configuration loading, configuration writing, safe exiting, and standardized printing. Designed to be minimal, readable, and easy to drop into any project.



Community

  • Pull requests are welcome
  • Please no slurs
  • Please be respectful of others
  • No question is too dumb
  • I will answer pull requests as soon as I can
  • Everyone is welcome, your sexuality/gender/personality will be protected here


updatelog:

  • errorui function with tons of configuration
  • loadfile function
  • writefile function
  • deletefile function
  • clearfile function
  • loadfile and writefile has support for most file types
  • bugfixes
  • added comments at the start of the file
  • clearfile alias
  • deletefile alias


examples:

Print wrapper:

import utilyx
utilyx.Print(str)

loadfile:

from utilyx import loadfile #import the function
file_content=loadfile("txt", "logs.txt") #you can use text instead of txt
print(file_content)

writefile:

from utilyx import writefile #works the same as config just supports most text files
log=writefile(type="log", filename="logs.log")

suggested way to import utilyx and use:

from utilyx import * #imports all modules without requiring utilyx. at the start of calls
Print(str)
config=loadconfig("json", "config.json")#to read JSON files
print(config)


Installation

pip install utilyx

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

utilyx-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

utilyx-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file utilyx-1.0.1.tar.gz.

File metadata

  • Download URL: utilyx-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for utilyx-1.0.1.tar.gz
Algorithm Hash digest
SHA256 86ba8d93e21553b6e45d17e1324f030922fe9efbe949b0485b0d859f2e38b548
MD5 92c7a0334a9dfab3c2a90a58884d03ff
BLAKE2b-256 a1c7387a8a1aae2b9f8a267295efbc773b4f7801968bfecd2548125d40cdd036

See more details on using hashes here.

File details

Details for the file utilyx-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: utilyx-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for utilyx-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cb3e3e9b29bc2f836cb682e08c55635ebc446621b957ad22206558bff96477
MD5 e3ff7b5753a28038f0b7277db1869d08
BLAKE2b-256 9301a9ac5566910f4b717c0fbb7b75174d0fc1e6a14c77ea001fa3e4120e5d46

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