This project has been archived by its maintainers, and is no longer receiving any updates.
Aseprite INI
A tool to parse Aseprite .ini format file.
This format is being used for language translation strings.
Installation
pip install aseprite-ini
Usage
import os
from aseprite_ini import Aseini
from examples import assets_dir, build_dir
def main():
strings_en = Aseini.pull_strings('main')
strings_en.fallback(Aseini.pull_strings('v1.3.2'))
strings_en.fallback(Aseini.pull_strings('v1.2.40'))
strings_en.save(os.path.join(build_dir, 'en.ini'))
strings_my = Aseini.load(os.path.join(assets_dir, 'my.ini'))
translated, total = strings_my.coverage(strings_en)
print(f'progress: {translated} / {total}')
strings_my.save(os.path.join(build_dir, 'my.ini'), strings_en)
strings_my.save_alphabet(os.path.join(build_dir, 'my.txt'))
if __name__ == '__main__':
main()
Dependencies
License
Under the MIT license.
Metadata
Release files for aseprite-ini 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aseprite_ini-0.0.7.tar.gz | 6.1 kB | Without provenance | Details for aseprite_ini-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aseprite_ini-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for aseprite_ini-0.0.7-py3-none-any.whl |
Total release size: 10.1 kB
Release files / aseprite_ini-0.0.7.tar.gz
| Download URL | aseprite_ini-0.0.7.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57b0ba905513487ae0a8e544e10f5e43971d2f78e65f103a6ff9772a8c4e3d3f
|
|
BLAKE2b-256 checksum How to use checksums |
0eadcba51133604322c50704e83f2275dca796449b10e1f43f71290ff40299d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / aseprite_ini-0.0.7-py3-none-any.whl
| Download URL | aseprite_ini-0.0.7-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43b52b1d37116e3f19a28b313fc540c034ae36748068272e59cb1d69d078066b
|
|
BLAKE2b-256 checksum How to use checksums |
9f1be6c697785b39319b9bbcbe835fa4e8dd7a09198c7a6cc58e84efed50c83a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for aseprite-ini 0.0.7
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.