connect.packages
connect.packages
Package resources.
Classes
| Name | Description |
|---|---|
| ContentPackage | |
| ContentPackages | |
| Package | |
| Packages |
ContentPackage
connect.packages.ContentPackage()ContentPackages
connect.packages.ContentPackages()Methods
| Name | Description |
|---|---|
| fetch | Fetch all records matching the specified conditions. |
| find_by | Find the first record matching the specified conditions. |
fetch
connect.packages.ContentPackages.fetch(
language=...
name=...
version=...
hash=...
)Fetch all records matching the specified conditions.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| language | ('python', 'r') | Programming language ecosystem, options are ‘python’ and ‘r’ | "python" |
| name | (str, not required) |
The package name | ... |
| version | (str, not required) |
The package version | ... |
| hash | (str or None, optional, not required) |
Package description hash for R packages. | ... |
Returns
| Name | Type | Description |
|---|---|---|
List[ContentPackage] |
The first record matching the specified conditions, or None if no such record exists. |
find_by
connect.packages.ContentPackages.find_by(
language=...
name=...
version=...
hash=...
)Find the first record matching the specified conditions.
There is no implied ordering, so if order matters, you should specify it yourself.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| language | ('python', 'r') | Programming language ecosystem, options are ‘python’ and ‘r’ | "python" |
| name | (str, not required) |
The package name | ... |
| version | (str, not required) |
The package version | ... |
| hash | (str or None, optional, not required) |
Package description hash for R packages. | ... |
Returns
| Name | Type | Description |
|---|---|---|
| ContentPackage | None | The first record matching the specified conditions, or None if no such record exists. |
Package
connect.packages.Package()Packages
connect.packages.Packages()Methods
| Name | Description |
|---|---|
| fetch | Fetch all records matching the specified conditions. |
| find_by | Find the first record matching the specified conditions. |
fetch
connect.packages.Packages.fetch(
language=...
name=...
version=...
hash=...
bundle_id=...
app_id=...
app_guid=...
)Fetch all records matching the specified conditions.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| language | ('python', 'r') | Programming language ecosystem, options are ‘python’ and ‘r’ | "python" |
| name | (str, not required) |
The package name | ... |
| version | (str, not required) |
The package version | ... |
| hash | (str or None, optional, not required) |
Package description hash for R packages. | ... |
| bundle_id | str | The unique identifier of the bundle this package is associated with. | ... |
| app_id | str | The numerical identifier of the application this package is associated with. | ... |
| app_guid | str | The unique identifier of the application this package is associated with. | ... |
Returns
| Name | Type | Description |
|---|---|---|
List[Package] |
The first record matching the specified conditions, or None if no such record exists. |
find_by
connect.packages.Packages.find_by(
language=...
name=...
version=...
hash=...
bundle_id=...
app_id=...
app_guid=...
)Find the first record matching the specified conditions.
There is no implied ordering, so if order matters, you should specify it yourself.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| language | ('python', 'r') | Programming language ecosystem, options are ‘python’ and ‘r’ | "python" |
| name | (str, not required) |
The package name | ... |
| version | (str, not required) |
The package version | ... |
| hash | (str or None, optional, not required) |
Package description hash for R packages. | ... |
| bundle_id | str | The unique identifier of the bundle this package is associated with. | ... |
| app_id | str | The numerical identifier of the application this package is associated with. | ... |
| app_guid | str | The unique identifier of the application this package is associated with. | ... |
Returns
| Name | Type | Description |
|---|---|---|
| Package | None | The first record matching the specified conditions, or None if no such record exists. |