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.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mdocfile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a6888fd07bdaefb5642d20a3b7160028eaf6608be9e8cc409e2dd08b41fd307a
MD5 2fb02d65b7de808f16ef3663d47c76fa
BLAKE2b-256 2ea3172c02462b0b81474b2d4b5fa9bb47f248b4303a157f97ec51e90d075ed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mdocfile-0.2.0-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.1

File hashes

Hashes for mdocfile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c68b42f53c03dcf19c43c8d6e1d5cfa680a1d06356d3905ac01e9286f7db898
MD5 01b49ef0d30e744c61d2331f4ff32062
BLAKE2b-256 4e33e6382d75340b1e0bc203c45efc615b2e7db3f6b7a65deb6e72ae34596aca

See more details on using hashes here.

Supported by

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