Skip to main content

properties.py

Description

Module for reading/writing properties-files.

Installation

pip install -U properties.py

Usage

Code

import properties

user = {"name": "NoName", "age": -1, "sex": "M", "data": {"region": 39, "keywords": ["man", "human", 14.88]}}

with open("test.properties", "w", encoding="utf-8", errors="ignore") as file:
    properties.dump(user, file)

with open("test.properties", "r", encoding="utf-8", errors="ignore") as file:
    data = properties.load(file)

print(data)

Output

{'name': 'NoName', 'age': -1, 'sex': 'M', 'data': {'region': 39, 'keywords': ['man', 'human', 14.88]}}

Metadata

Release files for properties.py 1.2.1

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

Source distribution (sdist)

Source distribution for properties.py 1.2.1
File Size Uploaded
properties_py-1.2.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for properties.py 1.2.1
File Interpreter ABI Platform
properties_py-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / properties_py-1.2.1.tar.gz

Download URL properties_py-1.2.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c08c75842985ce6d7c3a01c55d018945ec4e8ce06ae7b10510ed1b0b402ed252
BLAKE2b-256 checksum
How to use checksums
a3e8ddfc4d18bbb200ec4aec8d88836406d6d8c69f9bcd563552826c651ece6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.9.13 Windows/10

Release files / properties_py-1.2.1-py3-none-any.whl

Download URL properties_py-1.2.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82fd9247509f513a449122e18b5e6d384ed24be99841c0e82518b64798f2bb77
BLAKE2b-256 checksum
How to use checksums
e7444a57fde8655f3f6e577980c50a95c0d62edc31bb39ed49f3cc5c03630937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.9.13 Windows/10

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

0.9.9

1 release 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