Skip to main content

A small Python library for dictionary utilities

Project description

PyRestr

PyRestr is a small Python library for working with dictionaries, strings, and numbers easily.

Features

  • Dictionary utilities
  • String utilities
  • Number utilities

Usage Examples

import pyrestr

# Dictionaries
pyrestr.keybyval({"a": 1, "b": 2}, 2)  # returns "b"

# Strings
pyrestr.rev("Python")                   # returns "nohtyP"
pyrestr.titlecase("hello world")       # returns "Hello World"

# Numbers
pyrestr.is_even(10)                     # returns True
pyrestr.factorial(5)                    # returns 120

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

pyrestr-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

pyrestr-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrestr-0.1.0.tar.gz.

File metadata

  • Download URL: pyrestr-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for pyrestr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a08138cfacb56d361f62cf1feb02282358d9ed0ca837f2814bbe1c6feb20594
MD5 1fc47274cf0a68f680baec7f42293970
BLAKE2b-256 3ce247a3e1b297f22b5879bd7ee9d8dddd367374a186ad7d1b1ad01992a51649

See more details on using hashes here.

File details

Details for the file pyrestr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyrestr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for pyrestr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 144e021ff7f599ef8eafb12cbf7bea6d95bd46396d25ae4be8a1b8353cd25b1c
MD5 1ae4df121d7aae1df0ca3a774be11bff
BLAKE2b-256 58552afce40a10ac93e8f7a5668da15d6fc8aebbd11e977a79633cf3791a5783

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