Skip to main content

SerialEM mdoc files as pandas dataframes.

Project description

mdocfile

License PyPI Python Version CI codecov

SerialEM mdoc files as pandas dataframes.

mdocfile is Python package for working with SerialEM mdoc files.


Quickstart

mdocfile.read() will return the contents of an mdoc file as a pandas dataframe.

import mdocfile

df = mdocfile.read('my_mdoc_file.mdoc')

For writing valid mdoc files, please see writing mdoc files.

Installation

pip:

pip install mdocfile

Parsing from text

Mdoc.from_string().as_dataframe() will return the contents of string mdoc data as a pandas dataframe. This is useful for mdoc data that is not stored in a file (e.g. from a database or a web request).

from mdocfile.data_models import Mdoc

mdoc_data = ...

mdoc = Mdoc.from_string(mdoc_data).as_dataframe()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdocfile-0.2.1.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

mdocfile-0.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file mdocfile-0.2.1.tar.gz.

File metadata

  • Download URL: mdocfile-0.2.1.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for mdocfile-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7560f2aaf4ffe9435cbf763a21450e9d74aa612a0bddf84b4bdb676c2bd03df0
MD5 f809621a8b1f413b46260abfe0bb4f09
BLAKE2b-256 1d177a3808f42561dd663aafdbda7d2a2aa37abc0a981ccca4774e58c2bf89bd

See more details on using hashes here.

File details

Details for the file mdocfile-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mdocfile-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for mdocfile-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35a6f626eee22c35fd4d9c3c1e4fe282c9a6e81a7ef472742daf86369d2ba932
MD5 e661487be13094536c89c7bfb041b3f5
BLAKE2b-256 86a1eb18580f9e872570604206ebcd068ce2d79b843074abb70c54ddc167b4a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page