mdocfile
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)
| File | Size | Uploaded | |
|---|---|---|---|
| mdocfile-0.2.3.tar.gz | 30.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|