Skip to content

Installation

  • Python 3.9 or higher
  • libcurl development headers (for pycurl)
Terminal window
pip install sparqlite

sparqlite uses pycurl for HTTP requests, which requires libcurl development headers.

Terminal window
sudo apt-get install libcurl4-openssl-dev
Terminal window
sudo dnf install libcurl-devel
Terminal window
brew install curl

On Windows, pycurl wheels include the necessary libraries, so no additional installation is required.

from sparqlite import SPARQLClient
with SPARQLClient("https://opencitations.net/meta/sparql") as client:
print("sparqlite is ready!")