Skip to main content

Starrydata

Starrydata is a library that allows users to easily download and utilize datasets related to inorganic materials. This library enables efficient data retrieval for research and projects.

Installation

You can install Starrydata from PyPI using the following command:

pip install starrydata

Usage

Below is an example of how to use Starrydata.

Download and load the Starrydata dataset

To download a specific dataset, use the Dataset class. Here is an example of how to download and load a dataset into a pandas DataFrame:

import starrydata as sd  # Import the Starrydata library
import pandas as pd  # Import the pandas library

# Load the dataset for the specified date
sd_dataset = sd.load_dataset(date="20240521")

# Print the dataset timestamp to confirm the download date
print(sd_dataset.dataset_timestamp)

# Read the 'all_curves.csv' file from the dataset and convert it to a pandas DataFrame
df_curves = pd.read_csv(sd_dataset.curves_csv)

# Read the 'all_samples.csv' file from the dataset and convert it to a pandas DataFrame
df_samples = pd.read_csv(sd_dataset.samples_csv)

# Read the 'all_papers.csv' file from the dataset and convert it to a pandas DataFrame
df_papers = pd.read_json(sd_dataset.papers_csv)

load the Starrydata dataset zip file directly

import starrydata as sd
import pandas as pd

sd_dataset = sd.load_dataset(zip_path="<your_local_file_path>")
df_curve = pd.read_csv(sd_dataset.curves_csv)
df_sample = pd.read_csv(sd_dataset.samples_csv)
df_paper = pd.read_csv(sd_dataset.papers_csv)

Documentation

For more detailed documentation and usage examples, please refer to the official documentation.

Contributing

Bug reports and feature requests are welcome at the GitHub repository. Contributions to the codebase are also appreciated. Follow these steps to contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push the branch (git push origin feature-branch)
  5. Create a pull request

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Release files for starrydata 1.4.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 starrydata 1.4.0
File Size Uploaded
starrydata-1.4.0.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 13.4 kB

Release files / starrydata-1.4.0.tar.gz

Download URL starrydata-1.4.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f19742f4da877948a5cf2bf70f74d79fb455582fb811c1537978e1e709cd16fc
BLAKE2b-256 checksum
How to use checksums
a6c707217c441519a0bbbafcb11476bf2f582601419ba784d8189213ccb6df8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 PyPy/7.3.11

Release files / starrydata-1.4.0-py3-none-any.whl

Download URL starrydata-1.4.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20b6678487e574b9cbd3e0490874086376e5c37f55a13ee52364225359640189
BLAKE2b-256 checksum
How to use checksums
0a58e1b066a47f6d6bf026ab004471f60ff65a462507e3a0b60dd9b4ef0b6deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 PyPy/7.3.11

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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