Skip to main content

general python features that don't come with it.

Reason this release was yanked:

OLD

Project description

PyLib - General

This is a package that will be updated whenever I get an idea that I like and write it.

So far, I have:

  • Properties

Properties

This can be used like:

from pylib_general import properties

This loads the Property class, which can be used like:

varname = properties.Property()

The property class's functions are:

  • varname.add(name, val)

name being the name of the new value (cannot contain spaces), and val being the value.

  • varname.remove(name) name being the name of the value to remove

  • varname.get(name) returns the value of name

The difference between Property and other sets is that you can get a property in a much easier way:

varname.attr

Obviously, you can also get a value through varname.get(name) but you could also do varname.name

Ex:

varname = Property().add("somenamenotcontainingnumbersorspaces", "12233090")
print(varname.somenamenotcontainingnumbersorspaces)

prints 12233090

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

pylib-general-0.0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

pylib_general-0.0.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file pylib-general-0.0.2.tar.gz.

File metadata

  • Download URL: pylib-general-0.0.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pylib-general-0.0.2.tar.gz
Algorithm Hash digest
SHA256 56362c95863c11f3320cfff1762bfb8de23a9f8d2f2f4b2ae66731a436d5f9f6
MD5 b28c71747527a2fb9ba9e1dca035adc4
BLAKE2b-256 b7dd1053228a13be7c53add8309fe1e4fd3ef5eafb8784b404e4bee5f316cbee

See more details on using hashes here.

File details

Details for the file pylib_general-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pylib_general-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pylib_general-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03d2bc4549181220bbb7155c2949fbdad1e1feb799541d917184aca87174ea06
MD5 402bf7f51479d416da35e4eaec6eede9
BLAKE2b-256 59baf5239834a68d8335dbff8dea699e68475023057b9ed6cc617d364fff3a5b

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