Module: types
ArAddress = NewType('ArAddress', str)
module-attribute
Type alias for Arweave addresses, represented as strings.
ArTransactionId = NewType('ArTransactionId', str)
module-attribute
Type alias for Arweave transaction IDs, represented as strings.
Tags = Dict[str, str]
module-attribute
Type alias for a dictionary of tags, where both keys and values are strings.
RepoId
Bases: BaseModel
A class representing a repository identifier on Arweave.
Attributes:
Name | Type | Description |
---|---|---|
owner |
ArAddress
|
The owner of the repository. |
name |
str
|
The name of the repository. |
Source code in src/ritual_arweave/types.py
from_str(_id)
classmethod
Create a RepoId instance from a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
_id |
str
|
A string in the format 'owner/name'. |
required |
Returns:
Name | Type | Description |
---|---|---|
RepoId |
RepoId
|
An instance of RepoId with the owner and name extracted from the |
RepoId
|
input string. |