No project description provided
Project description
across-client
The across-client is the NASA-ACROSS library used to access and manipulate the across-server data. What separates this package from the autogenerated sdk is that it also levarages the across-tools package to give users a single interface for all of their cross-observatory science needs.
Access
To access our observatory data (telescopes, instruments, schedues, etc) on the across-server, users DO NOT require any authentication. But if an observatory user-group wants to use the API to publish their planned/completed observing schedules they are required to register, and obtain client credentials through the website.
Installation
This repository can be installed on python (version >=3.10) environments.
#activate your python environment (conda, mamba, venv... etc)
git clone https://github.com/NASA-ACROSS/across-client.git
cd across-client
python -m pip install .
or the latest released version with pip
python -m pip install across-client
Usage
Below is a small example on how to utilize the client to access JWST Nircam performed observations. For more examples on how to access observatory science data or use our observatory tools endpoints, please go to our examples folder.
from datetime import datetime
from across.client import Client
# client credentials are only required for publishing schedules
ACROSS_SERVER_ID: str = "..."
ACROSS_SERVER_SECRET: str = "..."
client = Client(client_id=ACROSS_SERVER_ID, client_secret=ACROSS_SERVER_SECRET)
nircam = client.instrument.get_many(name="nircam")[0]
nircam_observations = client.observation.get_many(
instrument_ids=[nircam.id],
status="performed",
date_range_begin=datetime(...),
date_range_end=datetime(...),
)
Contributing
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our Contributing document for more instructions!
Other Links
Notice
NASA Docket No. GSC-19,469-1, and identified as "Astrophysics Cross-Observatory Science Support (ACROSS) System
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.“
Copyright © 2025 United States Government as represented by the Administrator of the National Aeronautics and Space Administration and The Penn State Research Foundation. All rights reserved. This software is licensed under the Apache 2.0 License.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file across_client-1.0.0.tar.gz.
File metadata
- Download URL: across_client-1.0.0.tar.gz
- Upload date:
- Size: 129.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a715010677c86bbf364bf2af40f36778f21639284109c77b2b3d0085845edce
|
|
| MD5 |
4ed5c83f8c301c58b6e2386751697d33
|
|
| BLAKE2b-256 |
73b127512d3b8c5464e2e49a9424cb7c656c54069a768f83a4477e173323ad34
|
Provenance
The following attestation bundles were made for across_client-1.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on NASA-ACROSS/across-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
across_client-1.0.0.tar.gz -
Subject digest:
2a715010677c86bbf364bf2af40f36778f21639284109c77b2b3d0085845edce - Sigstore transparency entry: 829321488
- Sigstore integration time:
-
Permalink:
NASA-ACROSS/across-client@a2b2e33c5165a6f66efdebba24e60e51a6dd1d8e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/NASA-ACROSS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@a2b2e33c5165a6f66efdebba24e60e51a6dd1d8e -
Trigger Event:
release
-
Statement type:
File details
Details for the file across_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: across_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a64d15084a058957158dd73f1b03ea93841370cd5dd53b714b18383108eeecf
|
|
| MD5 |
a9f837d2fa07debabec33ee23475ecae
|
|
| BLAKE2b-256 |
9651b645630662e3defa6f9675642bc5df321bc0f2be7e5ac8dc8dd67e15fc95
|
Provenance
The following attestation bundles were made for across_client-1.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on NASA-ACROSS/across-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
across_client-1.0.0-py3-none-any.whl -
Subject digest:
7a64d15084a058957158dd73f1b03ea93841370cd5dd53b714b18383108eeecf - Sigstore transparency entry: 829321490
- Sigstore integration time:
-
Permalink:
NASA-ACROSS/across-client@a2b2e33c5165a6f66efdebba24e60e51a6dd1d8e -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/NASA-ACROSS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@a2b2e33c5165a6f66efdebba24e60e51a6dd1d8e -
Trigger Event:
release
-
Statement type: