Skip to main content

librestats_py_logo

GitHub forks GitHub License GitHub Repo stars

librestats

A Python library for accessing open and community-curated datasets enabling data scientists, researchers and students to load, analyze and visualize reliable data in just a few lines of code.

Installation

pip install librestats

Quick Start

import librestats as ls

# 1. List available domains
print(ls.list_domains())  
# ➝ ['awards', 'economy', 'sports']

# 2. List datasets inside a domain
print(ls.list_datasets("awards"))  
# ➝ ['fields_medal_winners_data', 'nobel_prize']

# 3. Load a dataset in a DataFrame (df)
df = ls.load_dataset("awards", "fields_medal_winners_data")

# 4. Access data from a DataFrame (df)
ls.get(df,"Belgium","1978")

Dataset Organization

Datasets are stored in structured domains making it easy to browse, extend and contribute!

datasets/
├── awards/
│   ├── fields_medal.csv
│   ├── nobel_prize.csv
|   ...
├── economy/
│   ├── gdp.csv
│   ├── inflation.csv
|   ...
├── sports/
│   ├── olympics.csv
│   ├── world_cup.csv
|   ...
...

With LibreStats, open data becomes more accessible, powerful and fun!
We welcome dataset contributions and feature ideas!

Metadata

Release files for librestats 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for librestats 0.1.0
File Size Uploaded
librestats-0.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

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

Total release size: 15.3 kB

Release files / librestats-0.1.0.tar.gz

Download URL librestats-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1ecc4f75cd25d69908358c5b560f65dd16fc05501ee4c74e95eeda1e22e32043
BLAKE2b-256 checksum
How to use checksums
3cfc057eabf05bb097629a18d1f99ffe9686c51e656b49b9d78ab1f9758e7ce9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / librestats-0.1.0-py3-none-any.whl

Download URL librestats-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e0c6c90a3b55c111239a536fd2c8c92557964fb58faff645f1fd3f4851747f9
BLAKE2b-256 checksum
How to use checksums
811ebb9dc9b04b9cecb6539a19687eb537789e23cef9755eb21e39770ecdcb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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