httk-core¶
This site documents specifically the httk-core module. For the full documentation of httk₂ as a whole, see docs.httk.org.
httk-core is a thin module providing core functionality for httk₂.
It also defines the neutral httk.core.EntryProvider contract and its registry
(register_entry_provider), by which domain modules supply described, queryable
entry types to consumers such as httk-serve without either side depending
on the other.
Quick links
API reference: Reference
Views and backends: Views and Backends
Module registry: Module registry
Datastreams: Datastreams
Extensible CLI: The extensible command line
Plugins: Plugins
Cryptography: Cryptography
Projects and templates: Projects
Property definitions & entry providers: Property definitions
Vectors: Vectors
Exact math on rationals and decimals: Exact math on rationals and decimals
Citation credits: Citation credits
Runnable examples: Examples
The topic pages above are short and practical; each links onward to its full guide in the Details section of the sidebar.
Install¶
Preferably work in a Python virtual environment, then do:
git clone https://github.com/httk/httk-core
cd httk-core
python -m pip install -e .
Usage (tiny example)¶
The main subpackages are httk.core.datastream, httk.core.optimade,
httk.core.storage, httk.core.vectors, and httk.core.views.
from httk.core.vectors import FracVector, VectorNumpyView
cell = FracVector([["1/2", 0], [0, "1/3"]])
assert cell[0, 0] == 1 / 2
numeric = VectorNumpyView(cell)
assert numeric.tolist() == [[0.5, 0.0], [0.0, 1 / 3]]
print(numeric)
Documentation
- Reference
- Views and Backends
- Module registry
- Datastreams
- The extensible command line
- Plugins
- Cryptography
- Projects
- Property definitions
- Vectors
- Exact math on rationals and decimals
- Citation credits
- Examples
- Datastreams quickstart
- Vectors quickstart
- Exact math quickstart
- Getting data into httk: the
loaddispatcher and theDatasetLoader - Building a custom OPTIMADE entry type end to end
- Implementing an
EntryProvider: the contract httk-core owns - Parsing OPTIMADE filter strings into an abstract syntax tree
- Coercion quickstart