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]
---
$ pip install regex pytest
$ ./build.sh
$ pip install -e .
$ pytest
---
=== Building package
[source,shell]
---
$ pip install regex pytest
$ ./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 Distribution
interscript-0.0.4.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file interscript-0.0.4.tar.gz
.
File metadata
- Download URL: interscript-0.0.4.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0e6a0524c149c9cc2e633d9ea61cde458f7caaa31ce980ca570f4b4fe78796 |
|
MD5 | 61132542adbdc9d35bc9ba29f99404ab |
|
BLAKE2b-256 | 06fc7a598cd388d0dd6f2125661ba31c60851dc779fd3d2c89dfccb8015665bc |
File details
Details for the file interscript-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: interscript-0.0.4-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c72a6ea90c1f0487b0b4fd7ab6ad9574ab2f345997fd46aea8b63c175164d0 |
|
MD5 | d79da6f038785a6ea8b5f583fa8a8a73 |
|
BLAKE2b-256 | a4f1464761626bae4017b3c109109ac2cc737b76f954d2fd2f9505f2b1e67087 |