Tutorials¶
Step-by-step guides for learning MRRC. Each tutorial builds on previous concepts.
Choose Your Path¶
MRRC provides both Python and Rust APIs. Choose based on your needs:
| If you... | Start with |
|---|---|
| Are a Python developer | Python Tutorials |
| Are a Rust developer | Rust Tutorials |
| Want maximum performance | Rust (native) or Python with threading |
| Are migrating from pymarc | Python Tutorials + Migration Guide |
Python Tutorials¶
For Python developers. Covers the PyO3 bindings with pymarc-compatible API.
- Reading Records - Load MARC files and iterate over records
- Writing Records - Create and save MARC records
- Format Conversion - Convert between JSON, XML, and other formats
- Querying Fields - Use the Query DSL for complex field matching
- Concurrency - Parallel processing with threading
Rust Tutorials¶
For Rust developers. Covers the native API with builder patterns and traits.
- Reading Records - Parse MARC files with MarcReader
- Writing Records - Build records with the builder pattern
- Format Conversion - Serialize to JSON, XML, BIBFRAME, and more
- Querying Fields - Use query types for field filtering
- Concurrency - Parallel processing with Rayon
Prerequisites¶
Before starting the tutorials:
- Python: Install with
pip install mrrcoruv add mrrc - Rust: Add to Cargo.toml with
cargo add mrrc
See Installation for detailed setup instructions.
Next Steps¶
After completing the tutorials: