Skip to main content

TwoRavens Preprocess

Python package to produce TwoRavens metadata:

pip install tworavens-preprocess

Preprocess a data file

  • Open a python shell
from raven_preprocess.preprocess_runner import PreprocessRunner

# process a data file
#
run_info = PreprocessRunner.load_from_file('input/path/my-data-file.csv')

# Did it work?
#
if not run_info.success:
    # nope :(
    #
    print(run_info.err_msg)
else:
    # yes :)
    #
    runner = run_info.result_obj

    # show the JSON (string)
    #
    print(runner.get_final_json(indent=4))

    # retrieve the data as a python OrderedDict
    #
    metadata = runner.get_final_dict()

    # iterate through the variables
    #
    for vkey, vinfo in metadata['variables'].items():
        print('-' * 40)
        print(f'--- {vkey} ---')
        print('nature:', vinfo['nature'])
        print('invalidCount:', vinfo['invalidCount'])
        print('validCount:', vinfo['validCount'])
        print('uniqueCount:', vinfo['uniqueCount'])
        print('median:', vinfo['median'])
        print('etc...')

Preprocess a single file: output to screen or file

# -------------------------
# Preprocess a single file,
# Write output to screen
# -------------------------
from raven_preprocess.preprocess import run_preprocess
run_preprocess('path-to-input-file.csv')

# -------------------------
# Preprocess a single file,
# Write output to file
# -------------------------
from raven_preprocess.preprocess import run_preprocess
run_preprocess('path-to-input-file.csv', 'path-to-OUTPUT-file.csv')

Metadata

Release files for tworavens-preprocess 1.1.5

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

Source distribution (sdist)

Source distribution for tworavens-preprocess 1.1.5
File Size Uploaded Provenance
tworavens_preprocess-1.1.5.tar.gz 32.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tworavens-preprocess 1.1.5
File Interpreter ABI Platform
tworavens_preprocess-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 76.2 kB

Release files / tworavens_preprocess-1.1.5.tar.gz

Download URL tworavens_preprocess-1.1.5.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dfde367efe18371fb6221cb9ea4f4269d1c4c42b59af0bcc8e472360bb59dfa8
BLAKE2b-256 checksum
How to use checksums
54ddc11ea8d926951de330f87c52d8f69b83a3afd7364f441c36c95357c77dc0
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/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / tworavens_preprocess-1.1.5-py3-none-any.whl

Download URL tworavens_preprocess-1.1.5-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fcb2350e0667e851674893ed95884545cf2a4ee246608086fe677c5a905f4e8
BLAKE2b-256 checksum
How to use checksums
60cc988e1d38fd601c05be8c38838f4b0e7819b38d7813609eb0a583dfc01cec
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/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Security for tworavens-preprocess 1.1.5

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.

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