PyBEL-CX

A PyBEL extension for interconversion with CX.
Installation

PyBEL-CX can be installed easily from PyPI with the following code in your favorite terminal:
$ python3 -m pip install pybel-cx
or from the latest code on GitHub with:
$ python3 -m pip install git+https://github.com/pybel/pybel-cx.git
Command Line Usage
PyBEL-CX installs two command line utilities: bel_to_cx and cx_to_bel.
CX to BEL
Running this script has the caveat that the CX document should conform to the schema created by PyBEL-CX.
$ cat my_network.cx | cx_to_bel > my_network.bel
BEL to CX
$ cat my_network.bel | bel_to_cx > my_network.cx
Since this operation can be expensive, PyBEL caches namespace resources. The -c flag can be used to specify a database connection string to use a high performance RDBMS instead of the default SQLite. For example, if you would like to use MySQL, this database string will look something like mysql+pymysql://<username>:<password>@<host>/<dbname>?charset=utf8[&<options>]. Be sure to pip install the connector, which is pymysql in this example.
$ pip install pymysql
$ cat my_network.bel | bel_to_cx -c "mysql+pymysql://root:root@localhost/mydb?charset=utf8" > my_network.cx
More documentation on connection strings at http://pybel.readthedocs.io/en/latest/manager.html#pybel.manager.BaseManager.from_connection.
Metadata
Release files for pybel-cx 0.1.3
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 |
|---|---|---|---|---|
| pybel_cx-0.1.3.tar.gz | 23.0 kB | Without provenance | Details for pybel_cx-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybel_cx-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pybel_cx-0.1.3-py3-none-any.whl |
Total release size: 35.6 kB
Release files / pybel_cx-0.1.3.tar.gz
| Download URL | pybel_cx-0.1.3.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ed2a8fdca2fc91b03b7f44940bc1188d204af4a79f73dfdf445da6cbdcdbc74
|
|
BLAKE2b-256 checksum How to use checksums |
1aacaf5296e438ac66b90f7569e42a67b1902c00894d5cae98064c2f4a8b4acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / pybel_cx-0.1.3-py3-none-any.whl
| Download URL | pybel_cx-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ecc2e9d9b5db9a044ec798dc5c6f05fd1093299caf315f2d230746e94c7bf32
|
|
BLAKE2b-256 checksum How to use checksums |
3208d075949c4a1253638555589f390c64aaa3c5a0dfdeb87222adb4c2120cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for pybel-cx 0.1.3
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.