Introduction
Helper for using CSCS's pyfireCREST
Under construction!
Quick start
python3 -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pyfirecrest_helper
- You need a client id and a client secret to use the API. These can be obtained from CSCS here: https://oidc-dashboard-prod.cscs.ch/ This can be put in a file called
secrets.jsonfile that will look something like this (replace the client_id and client_secret with the information you have obtained from the CSCS site):
{
"client_id" : "firecrest-jgustavs-mycomputer",
"client_secret": "qpfKkEaHCwwmeC0vmysecretforfirecrest",
"token_uri" : "https://auth.cscs.ch/auth/realms/firecrest-clients/protocol/openid-connect/token"
}
give the location of your certs
export REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/BIT_Proxy_Root_CA_01.crt pyfirecrest_helper --list -a daint -t /store/2go/go30/JAG_test/ pyfirecrest_helper --download -a daint -s /store/2go/go30/JAG_test/20211212_121543.jpg pyfirecrest_helper --upload -a daint -s ./requirements.txt -t /store/2go/go30/JAG_test/
Installing:
Getting Started with script
- Have python 3 installed on your system. If not installed please go here: https://www.python.org/downloads
- py -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --upgrade pip
- py -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pipx pyenv
- py -m venv testing_fireCREST_JAG
- .\env\Scripts\activate
- Clone this repository:
git clone https://juliagustavsenagroscope@dev.azure.com/juliagustavsenagroscope/Allegra_Pilot/_git/pyfirecrest_helpers - py setup.py install
- You need a client id and a client secret to use the API. These can be obtained from CSCS here: https://oidc-dashboard-prod.cscs.ch/ This can be put in a file called
secrets.jsonfile that will look something like this (replace the client_id and client_secret with the information you have obtained from the CSCS site):
{
"client_id" : "firecrest-jgustavs-mycomputer",
"client_secret": "qpfKkEaHCwwmeC0vmysecretforfirecrest",
"token_uri" : "https://auth.cscs.ch/auth/realms/firecrest-clients/protocol/openid-connect/token"
}
The secrets.json file should live in the same directory as the source code.
Helpful installation if issues with requests,etc. export REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/BIT_Proxy_Root_CA_01.crt equivalent on windows?
- Deactivate the virtual env with
deactivate
Examples
python3 pyfirecrest_helper.py --list -a daint -t /store/2go/go30/JAG_test/
python3 pyfirecrest_helper.py --download -a daint -s /store/2go/go30/JAG_test/20211212_121543.jpg
python3 pyfirecrest_helper.py --upload -a daint -s ./requirements.txt -t /store/2go/go30/JAG_test/
Windows testing
py -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pipx pyenv certifi py -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org certifi py -c "import certifi ; print(certifi.where())" #C:\Users\F80862788\AppData\Local\Programs\Python\Python311\Lib\site-packages\certifi\cacert.pem
or try to get it to trust the certificaters
py -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pip_system_certs
then try...isntalling
Metadata
Release files for pyfirecrest-helper 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfirecrest_helper-0.0.1.tar.gz | 10.2 MB | Without provenance | Details for pyfirecrest_helper-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfirecrest_helper-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyfirecrest_helper-0.0.1-py3-none-any.whl |
Total release size: 15.3 MB
Release files / pyfirecrest_helper-0.0.1.tar.gz
| Download URL | pyfirecrest_helper-0.0.1.tar.gz |
|---|---|
| Size | 10.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40df67c26e9975c06e06c2f02a73f73bcac51e5ec77426375a1839beacd41166
|
|
BLAKE2b-256 checksum How to use checksums |
c660467cf9338ae751e8caf00fd9c1d14a082b7213bd1e178dd04bdc2ccf957e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / pyfirecrest_helper-0.0.1-py3-none-any.whl
| Download URL | pyfirecrest_helper-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fb386f072738d2046a95f8c66ae6d08ae9a7330cd0fab23b2a436b8f66af9d5
|
|
BLAKE2b-256 checksum How to use checksums |
aab31ca1764f34e993d74efc16282d195faaef7795772a28428c75a806f864ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for pyfirecrest-helper 0.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.