# Streamlit-Image-Coordinates
[![Releases](https://img.shields.io/pypi/v/streamlit-image-coordinates)](https://pypi.org/project/streamlit-image-coordinates/)
![Python Versions](https://img.shields.io/pypi/pyversions/streamlit-image-coordinates.svg)
![License](https://img.shields.io/github/license/blackary/streamlit-image-coordinates)
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://image-coordinates.streamlit.app)
Author: [@blackary](https://github.com/blackary)
Code: https://github.com/blackary/streamlit-image-coordinates
Streamlit component that displays an image and returns the coordinates when you click on it.
Also returns click event time in unix format.
## Installation instructions
```sh
pip install streamlit-image-coordinates
```
## Usage instructions
```python
import streamlit as st
from streamlit_image_coordinates import streamlit_image_coordinates
value = streamlit_image_coordinates("https://placekitten.com/200/300")
st.write(value)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/blackary/streamlit-image-coordinates/",
"name": "streamlit-image-coordinates",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "python streamlit images component",
"author": "Zachary Blackwood",
"author_email": "zachary@streamlit.io",
"download_url": "https://files.pythonhosted.org/packages/e2/cd/f85d0a8c0a0d067bdc743365d5f2efd6f9d3af048253d46a0306cbf465dc/streamlit_image_coordinates-0.2.0.tar.gz",
"platform": null,
"description": "# Streamlit-Image-Coordinates\n\n[![Releases](https://img.shields.io/pypi/v/streamlit-image-coordinates)](https://pypi.org/project/streamlit-image-coordinates/)\n![Python Versions](https://img.shields.io/pypi/pyversions/streamlit-image-coordinates.svg)\n![License](https://img.shields.io/github/license/blackary/streamlit-image-coordinates)\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://image-coordinates.streamlit.app)\n\nAuthor: [@blackary](https://github.com/blackary)\n\nCode: https://github.com/blackary/streamlit-image-coordinates\n\nStreamlit component that displays an image and returns the coordinates when you click on it.\nAlso returns click event time in unix format.\n\n## Installation instructions\n\n```sh\npip install streamlit-image-coordinates\n```\n\n## Usage instructions\n\n```python\nimport streamlit as st\n\nfrom streamlit_image_coordinates import streamlit_image_coordinates\n\nvalue = streamlit_image_coordinates(\"https://placekitten.com/200/300\")\n\nst.write(value)\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Streamlit component that displays an image and returns the coordinates when you click on it",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/blackary/streamlit-image-coordinates/"
},
"split_keywords": [
"python",
"streamlit",
"images",
"component"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cc289be034a3706f4454e56bbf961c4c4120a6d6b4d2f314a53e8f91f19ab686",
"md5": "b9da8367c8ea7a36f5c0d47076e8e3bb",
"sha256": "96e0120facf524acb2a25031e07226d7fe1a04a1735fbd779c785ab4a7a08b87"
},
"downloads": -1,
"filename": "streamlit_image_coordinates-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b9da8367c8ea7a36f5c0d47076e8e3bb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7143,
"upload_time": "2024-10-24T14:24:36",
"upload_time_iso_8601": "2024-10-24T14:24:36.157754Z",
"url": "https://files.pythonhosted.org/packages/cc/28/9be034a3706f4454e56bbf961c4c4120a6d6b4d2f314a53e8f91f19ab686/streamlit_image_coordinates-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e2cdf85d0a8c0a0d067bdc743365d5f2efd6f9d3af048253d46a0306cbf465dc",
"md5": "b3235d64195a3ec5deb4b2204c7b329d",
"sha256": "87d8de33c6b5a7baa99659a738080ee30b4f107ca8421f0c4204f17626d88c16"
},
"downloads": -1,
"filename": "streamlit_image_coordinates-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "b3235d64195a3ec5deb4b2204c7b329d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6574,
"upload_time": "2024-10-24T14:24:37",
"upload_time_iso_8601": "2024-10-24T14:24:37.684327Z",
"url": "https://files.pythonhosted.org/packages/e2/cd/f85d0a8c0a0d067bdc743365d5f2efd6f9d3af048253d46a0306cbf465dc/streamlit_image_coordinates-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-24 14:24:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "blackary",
"github_project": "streamlit-image-coordinates",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "streamlit-image-coordinates"
}