Skip to main content

Syntactic sugar for beginners!

Project description

simple_sugar

Simple Sugar is a beginner-oriented library that includes syntactic sugar covering the more basic building blocks of Python - including dictionaries, mathematical operations and file handling.

Installation

Use the package manager pip to install simple_sugar.

pip install simple_sugar

Usage

import simple_sugar

# Get a random number between 3 and 9
num = get_random(3, 9)

# Declare a dictionary and get all values
my_dict = dictionary()
my_dict.one = "First"
my_dict.two = "Second"

my_dict.get_values() # ["First", "Second"]

# Find the average of a list of numbers
my_list = [3, 5, 10, 9, 12]
average(my_list) # 7.8

# Get a file without punctuation
path = "file.txt"
my_file = get_file(path, punctuation=False)

License

MIT

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

simple_sugar-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

simple_sugar-1.0.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file simple_sugar-1.0.0.tar.gz.

File metadata

  • Download URL: simple_sugar-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for simple_sugar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d13e91d4a4456a664e4b6cb2fa5b120bf358a2a10a73f5c0febb4e42cf012c65
MD5 61c0554880b11c7b7d7eed7636282550
BLAKE2b-256 0dc372dd65477bcf4e1325eaada64ddcbc0aa8da87be67d05138d60300649721

See more details on using hashes here.

File details

Details for the file simple_sugar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: simple_sugar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for simple_sugar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d063c0e3c70c6c9bfa642f22c8c32a5668b79d2a05c7296113a8bbbf5ee3f38
MD5 3382b623378d0ab83885c701e2bd9f90
BLAKE2b-256 3b97845d959e0d85702a98743e16814e5e1774bc8bd9cb6515e2f7188a50bd0d

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