python sdk for Glance API
Project description
stare
The python wrapper for the Glance API.
CLI Usage
Use stare --help
for the various options provided.
Python Usage
import stare
client = stare.Glance()
# list of analyses as dict
analyses = client.analyses['analyses']
# list of papers as dict
papers = client.papers['papers']
Activity IDs
Activity IDs are currently in a different API project (under SCAB Nominations) which SUSY conveners have access to. For now, this is a partial list to make it easier.
ID | CODE | NAME |
---|---|---|
36 | SUSY | SUSY |
37 | BGF | Background forum |
38 | CDM | Common Dark Matter |
39 | TGSK | 3rd generation squarks |
40 | EW | EW |
41 | ISG | InclSqGl |
42 | RPVL | RPVLL |
43 | RVEW | SUSY Review |
199 | STPR | Strong production |
200 | RUN2 | Run2 Summaries |
SSL
In order to get SSL handshakes working (certificate verification), one needs to make sure we add/trust the CERN Certification Authorities (CA) for both the Root and the Grid CAs. Specifically, we rely on the Root CA to sign/issue the Grid CA. The Grid CA is what's relied on for the SSL chain. To make this happen, we'll need both PEM for each CA combined into a single CERN_chain.pem
file which is bundled up with this package.
Going to the CERN CA Files website and downloading the CERN Root Certification Authority 2 (DER file) and CERN Grid Certification Authority (PEM file). We can then convert the DER to PEM as follows (for the Root CA):
openssl x509 -in CERN_ROOT_CA_2.crt -inform der -outform pem -out CERN_ROOT_CA_2.pem
and then combine the two
cat CERN_GRID_CA_2.pem CERN_ROOT_CA_2.pem > CERN_chain.pem
This can be passed into any python requests::Session
via verify='/path/to/CERN_chain.pem'
and SSL verification should work.
[1] DER vs PEM?
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for stare-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42557b36ba02396b8f606b58c4ab12115a1be00280cb55d9aa6d2fdaa1fc3241 |
|
MD5 | 63c42142e6de664a50d6a38bbe4e8a91 |
|
BLAKE2b-256 | d198cbe65a06a37dfb8d72e38c0c3507ffb8cf6f1675ceef0f7aa25411fd5175 |