# (Best) Way to add dataset card from Python (push\_to\_hub)

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-dataset-card-from-python-push-to-hub%2F14839%3E%5C
**Category:** 🤗Datasets\
**Created:** [February 17, 2022, 10:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-dataset-card-from-python-push-to-hub%2F14839 "2022-02-17T22:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvilasuero](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@dvilasuero](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdvilasuero)%5C
**Post date:** [February 17, 2022, 10:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-dataset-card-from-python-push-to-hub%2F14839%2F1 "2022-02-17T22:47:34Z")

</div>

Hi,

Congrats on all the achievements with the library and the datasets ecosystem.

Working on using the Hub for sharing and versioning datasets for our open-source data labeling tool, I was wondering what’s the best way to “programmatically” add a Dataset Card when/after using the `my_dataset.push_to_hub()`? I promise I’ve been searching through the documentation. If there’s not currently a way with `datasets` maybe one could use the `huggingface_hub` directly? Any pointer to start looking at would be really helpful!

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [February 18, 2022, 11:48am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-dataset-card-from-python-push-to-hub%2F14839%2F2 "2022-02-18T11:48:42Z")

</div>

Hi, thanks! Yes, you can use [`huggingface_hub.upload_file`](https://huggingface.co/docs/hub/adding-a-library#upload_file) for that.

---

<div class="post-metadata">

**Author:** ![dvilasuero](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@dvilasuero](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdvilasuero)%5C
**Post date:** [February 18, 2022, 12:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbest-way-to-add-dataset-card-from-python-push-to-hub%2F14839%2F3 "2022-02-18T12:31:46Z")

</div>

Thanks, Mario, we’ll try that!
