Skip to main content

scixplorer

Documentation Tests Coverage PyPI

A Python client for SciX (Science Explorer), the successor to the NASA Astrophysics Data System. You write searches as Python expressions; scixplorer checks them, sends the Solr query SciX expects, and returns typed results.

Install

scixplorer needs Python 3.10 or later; its only dependency is httpx. We recommend uv:

uv add scixplorer

or, with pip, pip install scixplorer.

Get an API token at https://scixplorer.org/user/settings/token and put it in the environment variable SCIX_API_TOKEN, or on the first line of ~/.scix/token.

Example

from scixplorer import Author, Document, export

papers = (
    Document
    .select(
        Document.bibcode,
        Document.title,
        Document.year,
    )
    .where(
        Document.authors.any(
            (Author.name == "Kauffmann, G") & (Author.affiliation.country_code == "DE")
        )
        & Document.year.between(2000, 2010)
    )
    .order_by(Document.citation_count.desc())
    .limit(10)
)
for paper in papers:
    print(paper.year, paper.bibcode, paper.title[0])

print(export.bibtex(papers))
# -> @ARTICLE{2006MNRAS.372..961K

This finds papers from 2000 to 2010 on which G. Kauffmann gave a German affiliation, and exports them as BibTeX. papers.explain() shows the request without sending it.

Coming from the ads package? This is how a search changes (more in the documentation):

# With ads:
# papers = ads.SearchQuery(q='author:"Kewley, L" year:2008')

# The simplest change: keep your query string.
papers = (
    Document
    .select()
    .where(Document.raw('author:"Kewley, L" year:2008'))
)

# The recommended change: write the search in Python.
papers = (
    Document
    .select()
    .where((Document.author == "Kewley, L") & (Document.year == 2008))
)

Features

  • Searches as Python expressions on 101 typed document fields, checked when you write them.
  • Several conditions about the same author (Document.authors.any(...)), or the author at a position.
  • Search by journal title, institution, country, Unified Astronomy Thesaurus concept or planetary feature: resolved locally against packaged or downloaded reference data.
  • Your SciX libraries: list, create, change, combine and share them, and search within them.
  • Citation and reference networks and SciX's second-order operators (trending, useful, reviews, similar, top_n).
  • Export in BibTeX and every other format SciX offers; resolver links; network data; citation suggestions.
  • Synchronous and asyncio use with the same queries; retries, rate-limit tracking, and paging handled for you.

Metadata

Release files for scixplorer 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 scixplorer 1.0.1
File Size Uploaded Provenance Actions
scixplorer-1.0.1.tar.gz 797.1 kB With provenance Details for scixplorer-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / scixplorer-1.0.1.tar.gz

Download URL scixplorer-1.0.1.tar.gz
Size 797.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a63d97f97fed98e1dd996a9e90163819c1d5ed1f56148fabaa6929d992137f08
BLAKE2b-256 checksum
How to use checksums
ad758590d39904a3f17b3516e4a02f51973fadcd8f2af597dfe64876d19abc07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

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

Download URL scixplorer-1.0.1-py3-none-any.whl
Size 479.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45a160002425ceef50e979c15791b17c9aa60b29334035b48f339cca0ab8e05e
BLAKE2b-256 checksum
How to use checksums
875e935e6fd31b9635391d37a925a356cdc850a562db4325d0e7c4be2b121530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for scixplorer 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scixplorer-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

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.

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