AIF Python API
To use the aida_interchange package within your project, you must first install it. It is recommended that you install aida_interchange into a python3 virtual environment. See Python Virtual Environment for more details on creating and using a virtual environment.
Install
To install aida_interchange, make sure a Python Virtual Environment is activated and run the following command:
$ pip install aida-interchange
The aida_interchange modules can now be imported into your project.
API Documentation
The python project uses Sphinx for generating documentation. To generate the documentation, make sure a Python Virtual Environment is activated, navigate to the AIDA-Interchange-Format/python/docs directory, and run the update_documentation.sh script.
$ cd docs
$ ./update_documentation.sh
This script will generate documentation in the form of HTML and place it within the AIDA-Interchange-Format/python/docs/build/html folder.
Python Virtual Environment
It is recommended that Python development be done in an isolated environment called a virtual environment. There are multiple ways to set up and use Python virtual environments. This README describes one of those ways.
The basic steps are:
- Install virtualenv (done once)
- Create a virtual environment (done once per development effort)
- Repeat as needed:
- Activate a virtual environment
- Install libraries and develop code
- Deactivate a virtual environment
Follow the instructions below to set up your virtual environment. It is important to note that you should never install any project specific python dependencies outside of your virtual environment. Also, ensure that your virtual environment has been activated before running python scripts within this repository.
Install virtualenv
If you haven't installed virtualenv yet, follow these steps. This only needs to be once.
$ cd ~
$ mkdir .virtualenvs
$ pip install virtualenv
Verify virtualenv is installed
$ which virtualenv
Create virtual environment
When you are starting development of a python project, you first need to create a virtual environment. The name of the virtual environment in the example below, aida-interchange-format, assumes you are making changes or testing the AIF library. Feel free to use a name specific to your application if you are just using the AIF library.
To create the virtual environment and install the latest AIF, run the following:
$ virtualenv -p python3 ~/.virtualenvs/aida-interchange-format
$ source ~/.virtualenvs/aida-interchange-format/bin/activate
$ pip install aida-interchange
Your virtual environment is now activated. The following sections describe deactivating and re-activating the virtual environment.
Deactivate virtual environment
To deactivate your current virtual environment, run the following command.
$ deactivate
Activate virtual environment
To re-activate your virtual environment, run the following command.
$ source ~/.virtualenvs/aida-interchange-format/bin/activate
Metadata
Release files for aida-interchange 1.2.1
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 | |
|---|---|---|---|---|
| aida-interchange-1.2.1.tar.gz | 54.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aida_interchange-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 112.4 kB
Release files / aida-interchange-1.2.1.tar.gz
| Download URL | aida-interchange-1.2.1.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
695bee1a66a76260256caefc6ad86e5cae61ca2a3b7684c1f975c407ddf296c5
|
|
BLAKE2b-256 checksum How to use checksums |
1661484cbde6a6d0633c2939fcb6f09e3db7bd155651b27535ba34fa1859e52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
|
Release files / aida_interchange-1.2.1-py3-none-any.whl
| Download URL | aida_interchange-1.2.1-py3-none-any.whl |
|---|---|
| Size | 57.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bedc6cbf1604265d2f5f1a2420d43a66bc093b88fb959f7cd7fa9fc2126c854
|
|
BLAKE2b-256 checksum How to use checksums |
ca0245477eb055359894880f9cb3dbad6d535788481a9e863c4685da6710d619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
|
Security for aida-interchange 1.2.1
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.