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.
ArRepoId
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 ArRepoId instance from a string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
_id |
str
|
A string in the format 'owner/name'. |
required |
Returns:
Name | Type | Description |
---|---|---|
ArRepoId |
ArRepoId
|
An instance of ArRepoId with the owner and name extracted from the |
ArRepoId
|
input string. |
Source code in src/ritual_arweave/types.py
LargeFileManifest
Bases: BaseModel
A class to represent a manifest file for a large file uploaded in sections.
Attributes:
Name | Type | Description |
---|---|---|
files |
Dict[str, str]
|
A dictionary of file names and their transaction IDs. |
size |
int
|
The total size of the file. |