Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ rspace_client/.spyproject/config/workspace.ini

# mac os
.DS_Store

.claude/
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ setuptools = "<82"
python-dotenv = "^1.1.1"
black = "^21.6b0"
pytest = "^8.0.0"
responses = "^0.26.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
21 changes: 20 additions & 1 deletion rspace_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
"""
RSpace API client for interacting with RSpace ELN and Inventory
"""
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("rspace-client")
except PackageNotFoundError:
__version__ = "unknown"

from .eln.eln import ELNClient
from .inv.inv import InventoryClient
from .eln.advanced_query_builder import AdvancedQueryBuilder
from .utils import createELNClient
from .eln.field_content import FieldContent
from .exceptions import (
ApiError,
AuthenticationError,
NoSuchLinkRel,
RSpaceConnectionError,
RSpaceError,
)

__all__ = [
"ELNClient",
"InventoryClient",
"AdvancedQueryBuilder",
"createELNClient",
"FieldContent",
"notebook_sync"
"notebook_sync",
"RSpaceError",
"RSpaceConnectionError",
"AuthenticationError",
"ApiError",
"NoSuchLinkRel",
]
Loading
Loading