Tcenter for Python
A Python library for centralization of title. In this 0.1.4.4 version of tcenter, it allows you to center the title with a number of specific spaces.
Installation
The latest stable version is available on PyPI. Either add tcenter to your requirements.txt file or install with pip:
pip install tcenter
Usage
After you have installed it, to use it is very simple, just import the library and use it this way:
from tcenter.center import to_center
receive = to_center('Hello world', 20)
The function to_center, it receives a maximum of three parameters and a minimum of two. if you run the help () command you will receive more information about:
help(to_center)
He will return this to you at the terminal:
Help on function to_center in module tcenter.center:
to_center(title, space, object='')
This function is reponsible for centralizing the title. accepted at least two vestments.
:param title: receive any title, only string.
:param space: receive any value, only numbers.
:param object: receive any object, ex: - . = ~ < > _ | between others.
:return: The title centralized.
there are 3 ways for you to pass the data to to_center:
from tcenter.center import to_center
receive_one = to_center('Hello world', 20)
receive_two = to_center('Hello world', '20')
receive_three = to_center('Hello world', 20, '=')
print(receive_one)
print(receive_two)
print(receive_three)
This way the output would be like this:
Hello World
Hello World
=======Hello World=======
if you notice, the first two have no difference, but the third, it allows your title to be in the middle of the objects.
Metadata
Release files for tcenter 0.1.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tcenter-0.1.4.4.tar.gz | 2.5 kB | Without provenance | Details for tcenter-0.1.4.4.tar.gz |
Release files / tcenter-0.1.4.4.tar.gz
| Download URL | tcenter-0.1.4.4.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e1e10723b8bfc2dcec286970bc8fb49898f1aa1c0782352bcbd0db6045456cc
|
|
BLAKE2b-256 checksum How to use checksums |
a65eff0929c5c8386f80ccda29bed5e2e18fdf71d46d06fdb3839c104dcca089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
|
Security for tcenter 0.1.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.