Starrydata Python useful tools
Project description
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.
Downloading a 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.json' file from the dataset and convert it to a pandas DataFrame
df_papers = pd.read_json(sd_dataset.papers_json)
More details is 1_how_to_use.ipynb on Google Colab
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:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -am 'Add new feature') - Push the branch (
git push origin feature-branch) - Create a pull request
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starrydata-1.2.0.tar.gz.
File metadata
- Download URL: starrydata-1.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 PyPy/7.3.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f15ca346c40b44f64447539de167354c83566012f4018dcba7ddddfe6fc4c2c
|
|
| MD5 |
7bd3e33b3634a601f86fd45c574cd1dc
|
|
| BLAKE2b-256 |
71e7d2faa68974f6c6c37d5849c47f9ab80e97eba00919e5ba59474def25f7d5
|
File details
Details for the file starrydata-1.2.0-py3-none-any.whl.
File metadata
- Download URL: starrydata-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 PyPy/7.3.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4256dea4a1c6623318ea0ef5f4777aa9f279b7359caaccd0d958dc9ac0aa18a9
|
|
| MD5 |
44ee6d9327fc132d3449c920e59bfd4d
|
|
| BLAKE2b-256 |
cc8af751cbc59ce03769fa1e0d9563af6c1ed6f8aafdc23adaa94f09a33db392
|