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.3.tar.gz (30.0 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.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdocfile-0.2.3.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mdocfile-0.2.3.tar.gz
Algorithm Hash digest
SHA256 7cb9a4e14719fe76524a064209b0acc7ca9272781ae04ed03dceac7b23151c64
MD5 ba7045aba244b0a23f68425483a4f077
BLAKE2b-256 ca7f623738b3c31121a48d91e5f346a582e2f5c4cccf32b8d49dc28ed6c82f4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mdocfile-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mdocfile-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce153b390269a97ed4a817bb11ef426c21bbbfc0fe65cb8ba8a9168319e3165c
MD5 978578f6c1e048539542a77d20c164c3
BLAKE2b-256 c9c7180a79413a216a04244ffe7c9a6e2fdf8b6c849af4101dd5eb6245012cdc

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