Skip to main content

No project description provided

Project description

upref 🐸

Upref is a small python module to grab and save some user data like login, password, url (mainly string data). After some projects, I want a simple method to find the right login and url from the user and save it in the personnal data of the user.

Wheel Status Latest Version License Build Status Documentation Status


Installing upref with pip:

$ pip install upref

Basic Usage

Here is the first example. The code fetch the URL from the user parameter

import upref

user_data = upref.get_pref(
    {"url": {"label": "The application url"}},

print("URL is {}".format(user_data['url']))

This code create a file in the user folder. And this file will be read again during the next run.

  label: The application url

Code example

import upref
data = upref.get_pref(
        'login': {'label': "Your login"},
        'passwd': {'label': "Your secret password",
                'type': "Password"},
print("Your login is %s" % data['login'])
print("Your password (not so secret) is %s" % data['passwd'])

At the first execution, there is a window to grab the data. The second execution, there will be no windows, the data are only read from the file.

All data are saved in a yaml file at %APPDATA%/.upref/example02.conf or ~/.local/share/.upref/example02.conf.

  label: Your login
  value: My login
  label: Your secret password
  value: Password


  • Read and save small amount of data (url, login, )
  • Small gui to ask data from the user
  • Text option is avaible


The upref is licensed under the terms of the MIT license and is available for free.

MIT © Florent

Project details

Download files

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

Files for upref, version 1.0.14
Filename, size File type Python version Upload date Hashes
Filename, size upref-1.0.14-py2.py3-none-any.whl (158.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size upref-1.0.14.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page