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.46.tar.gz (4.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: PREFS-0.0.46.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.46.tar.gz
Algorithm Hash digest
SHA256 1f1e1b8428d0d1a425c66a771b5c6bbc3f24bb3fa2e1b3c73ec7ac580607cc23
MD5 5a2f289c59c1ae1c72c536cbadd259cf
BLAKE2b-256 4501ca64279bffca498c492357b9cbf83226978f29c7a2430fddd20d4ac1134f

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

This release

0.0.46 This release

1 file

0.0.45

1 file

0.0.6

1 file

0.0.5

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