Skip to main content

general stuff

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.1.tar.gz (14.5 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.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylib-general-0.0.1.tar.gz
  • Upload date:
  • Size: 14.5 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.1.tar.gz
Algorithm Hash digest
SHA256 b1cad40d717c64be83a3ca460b7689a2e7e82a6f324d8f58f1436c19810789ad
MD5 fff88d9aeb9988742b4c4fb4827dc006
BLAKE2b-256 c38053afe8a0c4c8cef3f65491d659e804d08ea587423f1a71f276914c69cc48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylib_general-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 def1d16be20ce76828b1af578abdc2acf21d9c3df5627bd08d6bcba0db625ccc
MD5 aa3048d4923cc667293821148fd0c6b6
BLAKE2b-256 b34701e5a232632abbb0d4042e630fe8fb49bcaf41508ac1c36313d715e41074

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