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.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

tags.py-0.8.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tags.py-0.8.3.tar.gz
  • Upload date:
  • Size: 2.3 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.9.4

File hashes

Hashes for tags.py-0.8.3.tar.gz
Algorithm Hash digest
SHA256 68bde617d7f417c16f2780135ee02aa5c5cb078a574c20e96269536bd6498cd1
MD5 4511b84248c8c508ebd560578189f151
BLAKE2b-256 d3f8763dfa8cd662e3ccc17828a4cf6bfd06b2b52f852ea32900af2ead4d84d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tags.py-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 2.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.9.4

File hashes

Hashes for tags.py-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 649a938c08d5bdaa3bd34e67230c6425df99c5575cd04d9491c8e9a3825eeacc
MD5 ab7d746642c8b86bdbfad075454594c4
BLAKE2b-256 fa6a8fa3a45647f74ef0d77cf707d989dc1badc0534b32cd35f2fc550fdc096d

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