Skip to main content

For Voken Project

Project description

Python Packages from Voken

PyPi Version Python Version

Python Packages from Voken Project

shell

Embed and provide a interactive console...

from voken import shell

shell.embed('welcome')

# >>>

text_link

  • Extract all TEXT_LINK(s)
  • Get hostname from a TEXT_LINK
  • Get telegram_username from a TEXT_LINK
from voken import text_link as tl

text = 'Lorem ipsum dolor sit amet, a.com b.com/a c.io c.io/abc t.me t.me/BotFather telegram.me telegram.me/BotFather something else...'

text_links = tl.find_all_text_links(text)
for text_link in text_links:
    print()
    print(text_link)
    print(tl.get_hostname(text_link))
    print(tl.get_telegram_username(text_link))

# a.com
# a.com
# None

# b.com/a
# b.com
# None

# c.io
# c.io
# None

# c.io/abc
# c.io
# None

# t.me
# t.me
# None

# t.me/BotFather
# t.me
# BotFather

# telegram.me
# telegram.me
# None

# telegram.me/BotFather
# telegram.me
# BotFather

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

voken-0.3.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

voken-0.3.2-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file voken-0.3.2.tar.gz.

File metadata

  • Download URL: voken-0.3.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for voken-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6a1b9c3bb0e51e0ac1f9cb926a41a61367500cf5dcf712c4d541e73a1e638d0f
MD5 ba9a6f27c534a87b1b7e84e14c1404d0
BLAKE2b-256 0f3349c301c2d6caadb131f146071bedc13ce620b45ab20ac87ddd2ba4e10121

See more details on using hashes here.

File details

Details for the file voken-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: voken-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for voken-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a64c873dbdd84231b0cd8ff9db458287a660c7b402ead53609d4e622b24ae1
MD5 6be76f2ff4eeb2261887522dfd556b04
BLAKE2b-256 f431f620be29df0b09c4278991244695c525b009bb8414af358f91ec5a80e576

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