Skip to main content

Why?

PREFS’s purpose is to facilitate the process of store information, like prefs or user information (that don’t will lost when program ends).

Store Prefs:

The main (and unique) feature is store prefs, read them and also (re)write. It creates a .txt file where, like dictionary structure, your prefs will be stored, like this:

firstEntry=”02/05/2021” theme=”Dark” username=”Patitotective” age=”21”

Syntaxis:

First you have to create an instance of the class PREFS: UserPrefs = PREFS.PREFS(prefs = {“age”: 21, “username”: “Patitotective”})

from this you could call the two methods:

ReadPrefs(): It will return a dictionarie with your prefs (key and value). WritePrefs(): It requires two arguments, first the name of the pref that you want to change (if pref exists) or create it doesn’t (like a dictionarie).

Installation:

pip3 install PREFS

Complete Documentation:

https://prefs.readthedocs.io/en/latest/

Change Log

0.001 (01/05/2021)

  • First Release

0.002 (01/05/2021)

  • Name change

0.003 (02/05/2021)

  • Added python interpreter for pref values (using ast library)

0.004 (02/05/2021)

  • Now in class PREFS argument prefs you must pass a lambda: function for not execute the function always, only when file is lost.

0.0045 (02/05/2021)

  • Fixed error with lambda.

0.0046 (04/05/2021)

  • Now you can choose your prefs ender, line break is predetermined, remember don’t put a character that is on your prefs because program fails.

Download files

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

Source Distribution

PREFS-0.0.5.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file PREFS-0.0.5.tar.gz.

File metadata

  • Download URL: PREFS-0.0.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for PREFS-0.0.5.tar.gz
Algorithm Hash digest
SHA256 223d81dcc0cfa5836865cb6cdd58046c76ee7e853108321299feb1459827f98a
MD5 0bba734979adb90537bcae79b23d4b2c
BLAKE2b-256 076e59c512b056ec1a7b43abcd45c209681f6cbf4694242fd07e182b0dc8b7c5

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

1.0.0

2 files

0.2.65

1 file

0.2.60

1 file

0.2.56

1 file

0.2.51

1 file

0.2.50

1 file

0.2

1 file

0.1.99

1 file

0.1.98

1 file

0.1.91

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.4

1 file

0.1.3

1 file

0.1.1

1 file

0.1.0

1 file

0.0.99

1 file

0.0.92

1 file

0.0.87

1 file

0.0.86

1 file

0.0.85

1 file

0.0.81

1 file

0.0.80

1 file

0.0.75

1 file

0.0.74

1 file

0.0.73

1 file

0.0.72

1 file

0.0.71

1 file

0.0.70

1 file

0.0.65

1 file

0.0.60

1 file

0.0.52

1 file

0.0.51

1 file

0.0.49

1 file

0.0.48

1 file

0.0.47

1 file

0.0.46

1 file

0.0.45

1 file

0.0.6

1 file

This release

0.0.5 This release

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page