Interoperable script conversion systems
Project description
= Interscript: Interoperable Script Conversion Systems for Python
== Purpose
This repository contains code for the Interscript Python runtime ("Interscript-Python").
This software allows performing script conversions by using the
https://github.com/interscript/maps[default set of Interscript maps]
hosted at GitHub.
Interscript is a project for interoperable script conversion systems
and provides executable runtimes for multiple platforms.
Full documentation available https://github.com/interscript/interscript/[here].
== Integration
This section provides instructions on how to utilize Interscript-Python
with your application.
Interscript-Python can be used as a Python library
=== Configuration
[source,shell]
----
$ pip install interscript
----
== Usage
[source,javascript]
-----
import interscript
interscript.load_map('bgnpcgn-ukr-Cyrl-Latn-2019')
print(interscript.transliterate('bgnpcgn-ukr-Cyrl-Latn-2019', input()))
-----
== Development
Ensure you have used a bootstrap repository https://github.com/interscript/interscript
and not just cloned this repo yourself, otherwise `./setup.sh` script won\'t work.
`./setup.sh` script is used to build the maps from the `maps` repository using our Ruby
Interscript implementation. Those maps are compiled to respective `.py` files inside
`src/interscript/maps/` directory and are not included in this repository.
=== Running tests
[source,shell]
---
$ ./build.sh
$ pip install -e .
$ pytest
---
=== Building package
[source,shell]
---
$ ./build.sh
$ python -m build
---
=== Publishing package
[source,shell]
---
$ twine upload dist/file.whl
---
== Copyright and license
This is a Ribose project. Copyright Ribose.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file interscript-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: interscript-0.0.1-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f40b95d086ebc4ab285b93ef151a613599e710ca168b60867dae1c25dbd9417 |
|
MD5 | fbfe2c80dcb45c0717bcd49fd91869dd |
|
BLAKE2b-256 | e84f2c805d5d77f88da71c84a2b7b457326025ae36895b86ccadcdfc2a8f925b |