https://github.com/rajputrockstar/stsocialicon
SocialMediaIcons is a Python class designed to dynamically generate SVG icons for various social media platforms. This class is customizable, allowing users to specify links, colors, and sizes for each social media icon.
https://github.com/rajputrockstar/stsocialicon
pypi pypi-package pypi-packages python-script python3 streamlit streamlit-application streamlit-component streamlit-webapp
Last synced: over 1 year ago
JSON representation
SocialMediaIcons is a Python class designed to dynamically generate SVG icons for various social media platforms. This class is customizable, allowing users to specify links, colors, and sizes for each social media icon.
- Host: GitHub
- URL: https://github.com/rajputrockstar/stsocialicon
- Owner: RAJPUTRoCkStAr
- License: mit
- Created: 2024-07-10T06:19:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T09:19:41.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T20:06:36.084Z (over 1 year ago)
- Topics: pypi, pypi-package, pypi-packages, python-script, python3, streamlit, streamlit-application, streamlit-component, streamlit-webapp
- Language: Python
- Homepage: https://github.com/RAJPUTRoCkStAr/Streamlit-socialmedia
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 
# SocialMediaIcons
`SocialMediaIcons` is a Python class designed to dynamically generate SVG icons for various social media platforms. This class is customizable, allowing users to specify links, colors, and sizes for each social media icon.
## Features
- **Dynamic Icon Generation**: Generates SVG icons based on provided social media links.
- **Customizable Colors**: Default colors are provided for each platform, but users can specify their own.
- **Flexible Sizing**: Supports multiple predefined sizes and allows custom height and width.
**Just Add links for your profile**
## Installation
You can install Stsocialicon using pip:
```bash
pip install Stsocialicon
```
## Code
```bash
from Stsocialicon import SocialMediaIcons
def main():
links = [
"https://www.facebook.com/example",
"https://www.youtube.com/example",
"https://www.instagram.com/example",
"https://www.linkedin.com/example"
] #pass social media link here
sizes = ['sm','lg'] #pass for every social media you are adding
icon_generator = SocialMediaIcons(social_media_links=links, sizes=sizes).generate_icons()
if __name__ == '__main__':
main()
```
## Contact
For any questions or feedback, feel free to reach out at [sumitsingh9441@gmail.com](mailto:sumitsingh9441@gmail.com).