Skip to main content

A simple utility package

Project description

ft_package

A simple Python package with useful utility functions.

Build:
run in the terminal inside the ft_package main directory: pip install build twine
run in the terminal inside the ft_package main directory: python3 -m build
run in the terminal inside the ft_package main directory: twine upload dist/* and enter this api key : pypi-AgEIcHlwaS5vcmcCJGRmNDVjZmZkLWFjMGQtNDBmZi1iN2Y3LTM3MmMzZTUwOTZmYgACKlszLCJkNGQwODA1NS01ZGUwLTQyYmYtOWE3MS1jNTVmZmEwMjEyY2MiXQAABiAHbFCUDfVctBnYSLEti0nddRjhEx7XIQmFmqgwum9MaA
run in the terminal inside the ft_package main directory: pip install jfatfat-package
now, you can run the tests inside ft_package/tests/ directory

Installation:
pip install jfatfat-package

Usage:
from ft_package import count_in_list, unique_elements, flatten_list, reverse_string

print(count_in_list(["apple", "banana", "apple"], "apple")) # Output: 2
print(unique_elements([1, 2, 2, 3, 4])) # Output: [1, 2, 3, 4]
print(flatten_list([[1, 2], [3, 4], [5]])) # Output: [1, 2, 3, 4, 5]
print(reverse_string("hello")) # Output: "olleh"

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

jfatfat_package-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

jfatfat_package-0.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file jfatfat_package-0.0.2.tar.gz.

File metadata

  • Download URL: jfatfat_package-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for jfatfat_package-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5dbff785bb41380a679c68394dc94a24f07af943684ac6e6977839619f2741cd
MD5 4ef94ea8c29714fe22c43399636a48f9
BLAKE2b-256 d437d15fb3fdcd02a1db37ca3b1bb0b98a3f74507ef42eb8261dfa3f87ff67b1

See more details on using hashes here.

File details

Details for the file jfatfat_package-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jfatfat_package-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cacc897c328b38ae04cf9d8b5ee6705cde13b20383ae678bc7ee66ece5e3c73d
MD5 2baf8f70fa39e5e6f2c3a4ddf8796d4e
BLAKE2b-256 1510490b703be73fc360edb017b07d2176328c6f0664d99eee1742f74ed1fbf5

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