Module for reading/writing properties-files.
Reason this release was yanked:
Критическая ошибка
Project description
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]}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
properties_py-1.2.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for properties_py-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1aedad8b67c391877934413ac22358af9eac59cbf3969331ba6ccdbd9a34be4 |
|
MD5 | ad82111e0c917b129244320d9e146d57 |
|
BLAKE2b-256 | b2cb4843ba18ce2571fbb6c4efe77a8f290c164698a4eed3be3feb4b7d5e45db |