Skip to main content

A Tag helper.

Project description

How to install using pip:

Stable:

pip install tags.py

Developement:

pip install git+https://github.com/proguy914629bot/tags.py

Simple guide on how to use:

from tags import Tag

tag = Tag()

#Without aliases:
tag.add_tag(r"{user}", "user123")

#With aliases called "{users}" and "{usr}":
tag.add_tag(r"{user}", "user123", r"{users}", r"{usr}")

#Converting the string:
string = r"{user} is the same as {users} and {usr}!"
tag.convert(string) # "user123 is the same as user123 and user123!"

#Getting a tag by name:
tag.get_tag("Insert-Name-Here")

#Getting a tag by id:
tag.get_tag("Insert-ID-Here")

#Get a tag ID by name:

#Way 1:
tag.get_tag("Insert-Name-Here").id

#Way 2:
tag.get_id("Insert-Name-Here")

#All these ways are the same. get_tag.id returns tag.get_id.

Contribution:

You can contribute by forking this repository, or cloning this repository. This is fully open-sourced in Github.

License:

MIT

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

tags.py-0.8.7.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

tags.py-0.8.7-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file tags.py-0.8.7.tar.gz.

File metadata

  • Download URL: tags.py-0.8.7.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for tags.py-0.8.7.tar.gz
Algorithm Hash digest
SHA256 371dcf621e84c446a4890160e06764ea21e9ca42cbc0de14bddbabc102a137ee
MD5 37066aa2f58d4859e389644e06dee7c6
BLAKE2b-256 1f86e0a8ba71cd3657e5a295f2ae91dda372cd1eb15ca928e0c4b18f1b24782d

See more details on using hashes here.

File details

Details for the file tags.py-0.8.7-py3-none-any.whl.

File metadata

  • Download URL: tags.py-0.8.7-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for tags.py-0.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 167770527fbec1494584c9de9714b538eee7a3786e153e65d019948b2d546db9
MD5 57996e2384654a9cda269055257763ac
BLAKE2b-256 1ec38606929ff0fb6ac30500e1c9312ff4cdebe2a1eb8e3d184577d93d57e76a

See more details on using hashes here.

Supported by

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