Skip to main content

For Voken Project

Project description

Python Packages from Voken

PyPi Version Python Version

Python Packages from Voken Project

Install

Available on PyPI:

$ python -m pip install voken

Modules

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.3.tar.gz (10.6 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.3-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: voken-0.3.3.tar.gz
  • Upload date:
  • Size: 10.6 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.3.tar.gz
Algorithm Hash digest
SHA256 f2b2e809e9b4a3324209e6a5eed856cc697e267941eaf6a63d543df2e8c2ba73
MD5 718416066adda7ead204626229d718a4
BLAKE2b-256 8a5a2f0e034f3b60eca2114cd7a34a36277dd2eebbd4415fb858b0b50e8a8f5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: voken-0.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 191d933af848d6dfa24093d08b3f1f74a9e938406c26f897d9b1fd3e1f7a9df2
MD5 b80e3f5ad6dbf3ad5c15e96225dfb56a
BLAKE2b-256 b826ceab450ba90733df20e880249b32f4d9db77a75807ac4cf5a7c9fdef47db

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