Skip to main content

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()

Metadata

Release files for mdocfile 0.2.3

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

Source distribution (sdist)

Source distribution for mdocfile 0.2.3
File Size Uploaded
mdocfile-0.2.3.tar.gz 30.0 kB Details

Built distribution (wheel)

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

Total release size: 37.0 kB

Release files / mdocfile-0.2.3.tar.gz

Download URL mdocfile-0.2.3.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7cb9a4e14719fe76524a064209b0acc7ca9272781ae04ed03dceac7b23151c64
BLAKE2b-256 checksum
How to use checksums
ca7f623738b3c31121a48d91e5f346a582e2f5c4cccf32b8d49dc28ed6c82f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / mdocfile-0.2.3-py3-none-any.whl

Download URL mdocfile-0.2.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce153b390269a97ed4a817bb11ef426c21bbbfc0fe65cb8ba8a9168319e3165c
BLAKE2b-256 checksum
How to use checksums
c9c7180a79413a216a04244ffe7c9a6e2fdf8b6c849af4101dd5eb6245012cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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