Skip to main content

Python utility to allow JSON kernels in SpiceyPy.

Project description

json-spice

Python utility to allow JSON kernels in SpiceyPy

A work in progress!!

Example

import jsonspice  # import first to monkeypatch spiceypy
import spiceypy

spiceypy.furnsh('de-403-masses.tpc')  # normal kernel

spiceypy.furnsh('test.json')  # also works with JSON kernels

spiceypy.furnsh({"BODY8_GM": 6836534.064})  # also works with dicts
spiceypy.furnsh({"time": '@1972-JAN-1'})  # SPICE @ syntax for time (see .fk files)
spiceypy.furnsh({"+abc": [4,5,6]})  # SPICE += syntax to append

See also

  • NAIF -- NASA's Navigation and Ancillary Information Facility
  • SpiceyPy -- SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit
  • J. Williams, JSON + SPICE, Feb 5, 2018 (degenerateconic.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonspice-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonspice-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file jsonspice-0.1.0.tar.gz.

File metadata

  • Download URL: jsonspice-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jsonspice-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ac6cb608b54390e12fb87c315b989ca22ab1ac98ec22877ddc7c9c1e3aac05c
MD5 c7ce921a2cc1ec611822ca21a2170657
BLAKE2b-256 602c2746d05563c3503b3b41103c96fc69523ac125562a634c5573f7b2220a57

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsonspice-0.1.0.tar.gz:

Publisher: publish.yml on jacobwilliams/jsonspice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jsonspice-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jsonspice-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jsonspice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 429a283ede61fc61e5e8c57486fcd66f9cad393b7a4f6194c7b158c197f0d6cd
MD5 0c0df3d6f824aca3f1b4443a7302bd1f
BLAKE2b-256 16cb52f8addc75e4420e3a0fa5f23cdebef8ba3675c0b975fc49d19caa78ea94

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsonspice-0.1.0-py3-none-any.whl:

Publisher: publish.yml on jacobwilliams/jsonspice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page