Skip to main content

ptr-metagen

Description

Python package for request and download data from CCSI

Install

pip install pyccsi

Usage

Import of the downloader class

from pyccsi import CCSIDownloader

Initialization of the downloader class. Class expecting only one parameter that is the base/host url of CCSI server instance

ccsi = CCSIDownloader(host_url="http://localhost:5000")

Downloader method 'send_request' send the request on the CSSI resource endpoin vis. host_url/:resource/...

Available resources name can be get via get request on the resource parameters endpoint vis. host_url/resources/parameters

Parameter params is a dict of resource parameters in the form of dictionary od pydantic base model. Parameters of given resource endpoint are show on resource OpenSearch description dokument vis. host_url/:resource/atom/search/description.xml

ccsi.send_request(resource=resource, params=params)

Send request can return list of the record requested from the CCSI for aditional sorting and manipulation

####Example of params dictionary resource: cds_er5

    {
        'timeStart': '2021-01-01',
        'timeEnd': '2021-01-10',
        'bbox': '25.067713534286536,35.298035029324204,25.193195594830012,35.347934920842974',
        'custom:camsDataset': 'total_column_water_vapour,10m_u_component_of_wind',
        'custom:hour': '03:00,06:00',
        'custom:format': 'grib'
    }

Second downloader method download accept the path of the folder where the data will be downloaded.

ccsi.download(path=output_directory)

Optionaly custom list of the records can be set in the method

ccsi.download(path=output_directory, records=records)

Metadata

Release files for pyccsi 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyccsi 1.0.1
File Size Uploaded Provenance Actions
pyccsi-1.0.1.tar.gz 5.1 kB Without provenance Details for pyccsi-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyccsi 1.0.1
File Interpreter ABI Platform Actions
pyccsi-1.0.1-py3-none-any.whl Python 3 none any Details for pyccsi-1.0.1-py3-none-any.whl

Total release size: 11.1 kB

Release files / pyccsi-1.0.1.tar.gz

Download URL pyccsi-1.0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1a84c2a0b4f05a834274f3b0616143729f5b33f39baec176fe5eeb1b33441fc6
BLAKE2b-256 checksum
How to use checksums
b24cbca51cb16226989965dc1e25e1383d1275927ad9ea580eb01af6bc37ed51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / pyccsi-1.0.1-py3-none-any.whl

Download URL pyccsi-1.0.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98db93b6c11d96ec6148540762f1dad5b181330ccb75213da73cc3c727aab323
BLAKE2b-256 checksum
How to use checksums
63d4cbfd01acc90148e334b6058b5b856a31bc2ea7af2d2245a339f2ca796285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for pyccsi 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page