Skip to main content

The psionapp package provides a basis for defining, saving, and retrieving application-level and user-level configuration variables (attributes).

The package exposes two classes: ApplicationClass and ApplicationUser.

ApplicationClass

An ApplicationClass object will define the application-level configuration (if any).

An ApplicationClass object will be identified by an application id. You can instantiate a class object with the following parameters:

  • use_user_ini (bool). If True this will create a .ini file in the system appropriate config directory. Initially a file will be created for the current system user's user name. This will store user-level configuration values.

  • use_config_ini (bool). If True this will create a config.ini file in the system appropriate config directory. This will store application-level configuration values.

  • use_var_dir (bool). If True this will create an application id directory in the system appropriate var data directory.

  • user_class (ApplicationUser). Used in conjunction with use_user_ini. The ApplicationUser class will define the config parameters.

  • attributes (see Attribute definition)

ApplicationUser

An ApplicationUser object will define the user-level configuration (if any).

An ApplicationUser class will be identified by a user name. It will define the attributes that will form that user's configuration values.

Attribute definition

Attibutes must be defined in the form:

attributes = {
    'string_data': ('general', 'string', 'abc'),
    'int_data': ('general', 'int', 2),
    'bool_data': ('display', 'bool', True),
    'float_data': ('display', 'float', 1.23456),
}

where the attributes dict key is the attribute name, and the three tuple values are:

  1. the section in the config file where the attribute will appear;
  2. the data type of the attribute;
  3. the default value of the attribute.

Version 0.0.5 - 21 January 2021

  • Dummy

Version 0.0.4 - 14 August 2020

  • include download path

Version 0.0.3 - 3 August 2020

  • refactor application last_user

Version 0.0.2 - 2 August 2020

  • remove _applicationbase
  • refactor user creation and save
  • refactor applicationclass

Version 0.0.1 - 1 August 2020

  • Added version and _all_
  • Added App level attributes
  • Added README

Version 0.0.0 - 30 July 2020

Created and uploaded

Metadata

Release files for psionapp 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psionapp 0.0.5
File Size Uploaded Provenance Actions
psionapp-0.0.5.tar.gz 8.6 kB Without provenance Details for psionapp-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psionapp 0.0.5
File Interpreter ABI Platform Actions
psionapp-0.0.5-py3-none-any.whl Python 3 none any Details for psionapp-0.0.5-py3-none-any.whl

Total release size: 20.9 kB

Release files / psionapp-0.0.5.tar.gz

Download URL psionapp-0.0.5.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e933ac345df23b640fbb44f63144ce88cddef3d0eaf27ad92db50eabe6171644
BLAKE2b-256 checksum
How to use checksums
ad2219e06fa160510bfa49b150d81bc43670266783a966f41e836c4efefc429f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / psionapp-0.0.5-py3-none-any.whl

Download URL psionapp-0.0.5-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3405b65cf7f41fec64f9411ddd5e9c37c799ced1287a064679d2e9e16b9d4685
BLAKE2b-256 checksum
How to use checksums
1e3d53798255278093e7acdb75e82dc3ce1464c883fa45eb7f8ac77e15a78786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Security for psionapp 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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