Skip to content

Commit

Permalink
Merge pull request #34 from DataONEorg/develop
Browse files Browse the repository at this point in the history
Hashstore 0.9.0 Release
  • Loading branch information
doulikecookiedough authored Jun 7, 2023
2 parents 532538b + 697979c commit 8185863
Show file tree
Hide file tree
Showing 15 changed files with 3,451 additions and 1,870 deletions.
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"python.terminal.activateEnvInCurrentTerminal": true,
"python.defaultInterpreterPath": "~/.virtualenvs/hashfs/bin/python",
"python.formatting.provider": "black"
"python.formatting.provider": "black",
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
323 changes: 288 additions & 35 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[tool.poetry]
name = "hashstore"
version = "0.8.0"
version = "0.9.0"
description = "HashStore, a hash-based object store for data packages."
authors = ["Matt Jones <[email protected]>"]
authors = ["Matt Jones <[email protected]>", "Dou Mok <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
pathlib = "^1.0.1"
hashfs = "^0.7.2"

pyyaml = "^6.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
black = "^22.10.0"
pylint = "^2.17.4"

[build-system]
requires = ["poetry-core"]
Expand Down
13 changes: 8 additions & 5 deletions src/hashstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
processes that function across a cluster environment. Some properties:
- Data objects are immutable and never change
- Data objects are named using the SHA-256, base64-encoded hash of their contents (thus, a content-identifiers)
- Metadata objects are stored with a pointer to the hash of the data object they describe
- Metadata objects are named using the SHA-256, base64-encoded hash of their persistent identifier (PID)
- An object's persistent identifier can be used to read both metadata and contents of the object
- Data objects are named using the SHA-256, base64-encoded hash of their contents
(thus, a content-identifier)
- Metadata objects are stored with the formatId, a null character and its contents
- Metadata objects are named using the SHA-256, base64-encoded hash of their
persistent identifier (PID)
- An object's persistent identifier can be used to read both metadata and contents
of the object
"""

from hashstore.hashstore import HashStore
from hashstore.hashstore import HashStore
Loading

0 comments on commit 8185863

Please sign in to comment.