Skip to main content

PyToJCAMP

Documentation Status Python package pre-commit codecov PyPI - Python Version License: MIT GitHub last commit Binder

Python to JCAMP converter. Inspired by PyToJCAMP.

Some tools work well with the JCAMP format. This package allows converting Python data structures to JCAMP, this can make it easier for Python based web services to interact with the ELN.

Installation

To get the latest development version from the head use

pip install git+https://github.com/cheminfo-py/pytojcamp.git

to install the latest stable release use

pip install pytojcamp

Usage

See the example notebooks, which you can try out on Binder.

x/y data

For simple x/y data you can use

from pytojcamp import from_xy
jcamp_string = from_xy((x,y))

multicolumn data

For multicolumn data you can use

from pytojcamp import from_dict

data_dictionaries = {
    'x' : {
        'data': [1,2,3],
        'type': 'INDEPENDENT',
        'unit': 'cm'
    },
    'y' : {
        'data': [3,2,3],
        'type': 'DEPENDENT',
        'unit': 'h'
    },
    'z' : {
        'data': [3,2,3],
        'type': 'DEPENDENT',
        'unit': 'kg'
    }
}

jcamp_string = from_dict(data_dictionaries)

Metadata

Release files for pytojcamp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytojcamp 0.1.0
File Size Uploaded
pytojcamp-0.1.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytojcamp 0.1.0
File Interpreter ABI Platform
pytojcamp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.7 kB

Release files / pytojcamp-0.1.0.tar.gz

Download URL pytojcamp-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d6ed85dde5cf7f858f2e008dc4fbd314a24748238f119a8455f2e1506729d045
BLAKE2b-256 checksum
How to use checksums
a3e07e980a744113710270115ba287e9cc651243a75b40f4e3b72e86afbc08f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release files / pytojcamp-0.1.0-py3-none-any.whl

Download URL pytojcamp-0.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f08f52eb2bec7182433d021ac8d0c14cf2075bd24a3a9028b19168e0884a2ad1
BLAKE2b-256 checksum
How to use checksums
25ebcb89bd686687a2a356ce64eb1e1ff23d6254679cdc12229b2b8244d14bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page