Skip to main content

No project description provided

Project description

Personal Profile Card Module

This module provides a simple way to create and manage personal profile cards for various platforms like GitHub, YouTube, and Reddit. It includes customization options such as style, type, theme, and more. You can also use it for advertising your channel on your project.

Features

  • Customize the style of the profile card with predefined styles.
  • Set the type of profile card to platforms like GitHub, YouTube, Reddit, or custom.
  • Customize the theme to be either light or dark.
  • Add badges, background pictures, profile pictures, and more.

Example image Example image Example image

Pip Installation

To install this module, use the following pip command:

pip install profilecard

Basic Usage

Here's how you can use the Pf class from this module:

from profilecard import *

# Create a profile card instance (default is False)
profile = Pf(first=False)

# Change page style (default is style 1)
profile.set_style("2")  # Three styles available: 1, 2, 3

# Set profile type (required)
profile.set_type(type='github', link='https://github.com/yourusername')
profile.set_theme('light')  # Options: light, dark (default is dark)

# Add badges, more icons available on https://simpleicons.org/
profile.add_badge(icon="github", text="GitHub", link="https://github.com/yourusername") 
profile.add_badge(icon="facebook", text="facebook", color="black", bg_color="white")

# Badge arguments: 
# icon (Required) : Choose from 'github', 'youtube', 'facebook', 'twitter', 'instagram', 'reddit', 'gmail' and more...
# style : Choose from 'flat', 'flat-square', 'plastic', 'for-the-badge', 'social' (default: 'for-the-badge')
# color : Default is 'white'
# bg_color : Default is 'black'
# text : Default is None
# link : Default is None

# Add some information
profile.add_info("OwO")

# Add some contact information
profile.add_contect("My mail: abc@gmail.com")

# Set background image
profile.set_background_pic(r"https://storage.pixteller.com/designs/designs-images/2019-03-27/05/simple-background-backgrounds-passion-simple-1-5c9b95c3a34f9.png")

# Change the site title
profile.set_site_title("my site")

# Change profile title
profile.set_card_title("Handsome guy")

# Pack all
profile.pack()

# Display site
profile.show()

API Reference

The following functions are available in the Pf class:

set_style(style: str)

Sets the style of the profile card.

  • Parameters:
    • style: A string representing the style ('1', '2', '3'). Default is '1'.

set_type(type: str, link: str)

Sets the type of profile card and optionally the profile page link.

  • Parameters:
    • type: A string representing the type ('github', 'youtube', 'reddit', 'custom').
    • link: A string representing the link to the profile page.

set_theme(theme: str)

Sets the theme of the card.

  • Parameters:
    • theme: A string representing the theme ("light", "dark").

add_badge(icon: str, style: str, color: str, bg_color: str, text: str, link: str)

Adds a badge.

  • Parameters:
    • icon: Required. Choose from various icons like 'github', 'youtube', etc.
    • style: Badge style, default is 'for-the-badge'.
    • color: Color of the text, default is 'white'.
    • bg_color: Background color of the badge, default is 'black'.
    • text: Text to display on the badge, default is None.
    • link: Link to be associated with the badge, default is None.

Additional methods include set_pic, set_name, set_background_pic, add_info, add_contect, set_site_title, set_card_title, pack, show, and reset.

Contributing

Contributions are welcome! Please fork the repository and open a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

profilecard-1.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

profilecard-1.0.6-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file profilecard-1.0.6.tar.gz.

File metadata

  • Download URL: profilecard-1.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for profilecard-1.0.6.tar.gz
Algorithm Hash digest
SHA256 486a5b800da0bdb1439dae3528d1cec08afde4dada60b5865ae9243a3dd17425
MD5 5dfe42fa0b0a3c87407ba7d1c8bf123c
BLAKE2b-256 d3dd6e7dec8a968e18c9c062f84bc7c35dba81994a27d8a5b32f2a8e2c1522e5

See more details on using hashes here.

File details

Details for the file profilecard-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: profilecard-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for profilecard-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a1e0f6d690c3c6b8be8a3038ca2727eb7e6e67d0b519c6d2aad87581b885a0
MD5 7110e91e45bc0cc5500970d247a62bc2
BLAKE2b-256 94411946ff062e923b8985117f0e8e658f48996765621de5be54085ddd7e61d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page