Skip to main content

edit ini Ver1.0.0

This was created because the author found it difficult to use “configparser”. “edit ini” is partially compatible with “configparser”. You can create, edit and delete “[section]” and “option = value” for files with “.ini” extension. 日本語版はこちらです

License

Copyright (c) 2020 Penguin0093 Released under the MIT license https://opensource.org/licenses/mit-license.php

How to use it.

The basic style is:

iniio.iopen("File name","Open mode","section","option","value")
First argument: File Name
Second argument: mode (Write : w ,Read : r ,Delete : d)
Third argument: section name ([] in)
Fourth argument: option name (left of “=”)
Fifth argument: value (to the right of “=”)

1.Import

from editini Import iniio

2.Writing

Code

iniio.iopen("config.ini","w","section","option","value")

Result config.ini

[section]
option = value

If the “value” is empty, “” (empty character) is substituted

3.Reading

iniio.iopen(" .ini","r","section","option")
The return value is the read result.

config.ini

[section]
option = value

Code

print(iniio.iopen("config.ini","r","section","option")+"\n")
print(iniio.iopen("config.ini","r","section")+"\n")
print(iniio.iopen("config.ini","r")+"\n")

Result

value

option = value

[section]
option = value

4.Delete

iniio.iopen(" .ini","d","section","option")

config.ini

[section]
option = value

Code #1

iniio.iopen("config.ini","d","section","option")

Result #1 config.ini

[section]

Code #2

iniio.iopen("config.ini","d","section")

Result #2 config.ini

(Empty)

Click here for details (Japanese)

Metadata

Release files for editini 1.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 editini 1.0.5
File Size Uploaded Provenance Actions
editini-1.0.5.tar.gz 3.0 kB Without provenance Details for editini-1.0.5.tar.gz

Built distribution (wheel)

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

Total release size: 6.2 kB

Release files / editini-1.0.5.tar.gz

Download URL editini-1.0.5.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3770db3259f04cd1671aa1a8522c1d9b6159ac35ee746b41c19db05fdae91b98
BLAKE2b-256 checksum
How to use checksums
62021189e5af795ff59b55e9b226639e24708c895be70d13d1896062306752e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

Release files / editini-1.0.5-py3-none-any.whl

Download URL editini-1.0.5-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3008a692854b11303b599e86ec5ceeea5d6c6b9676c12cc56019004cdc407286
BLAKE2b-256 checksum
How to use checksums
4025338d44d3aa8ee479ec996f1f4e2f68b917127bd10ced4a2372d32b1e047e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

Security for editini 1.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