Skip to main content

Making totally readable code

Project description

Overiew

NO DEPENDENCIES REQUIRED

Joke Python module for making your code 'more readable'.

Has a weird naming scheme, random abstracted functions for no reason, and anything else that you could ever want!

Functions

  • Return_Value_Of(Value) - Returns Value OFC (useless).

  • Error(Err = Exception) - Raises an exception (kinda useless).

  • Empty() - Does nothing (useless).

  • Range(Number) / Len(List) / Int(Number) / String(Message) / Bool(Boolean) / Float(Decimal) / List(Array) / Print(Message) - The corresponding function but capitalised.

  • Add(Number_One, Number_Two) / Subtract(Number_One, Number_Two) / Multiply(Number_One, Number_Two) / Divide(Number_One, Number_Two) / Int_Divide(Number_One, Number_Two) / Modulo(Number_One, Number_Two) - Math operations.

  • Is_Odd(Number) / Is_Even(Number) / Is_Positive(Number) / Is_Negative(Number) / Is_Zero(Number) / Is_Wholly_Divisible(Number_One, Number_Two) / Is_Whole(Number) / Is_Float(Number) - Math checks.

  • Character_To_Code(Character) / Code_To_Character(Code) - Character-Code operations.

  • Is_Uppercase(Message) / Is_Lowercase(Message) / Is_Alphabet_Exclusive(Message) / Is_Number_Exclusive(Message) / Is_Alphabet_Number(Message) - String checks.

  • And(Bool_One, Bool_Two) / Or(Bool_One, Bool_Two) / Not(Bool) - Bool operations.

  • Print_Multiple_Times(Count, Msg) - Prints Msg Count amount of times.

  • Sum_Multiple_Numbers(Numbers) - Sums multiple numbers.

  • Multiply_Multiple_Numbers(Numbers) - Multiplies multiple numbers.

  • Get_Input_From_User(Message, Type = String) - Gets an input from the user and applies a function to that input (intended to change the input type which is by default string).

  • If_Selection(Condition, True_Code, False_Code = lambda: Null) - Creates an if statement that will run the true code if the condition is true, else will run the false code.

  • For_Loop(List, Code, PassElement, Arguments) - Creates a for loop iterating over a list, where the body code is a function, and the extra arguments (first of which will be the element if PassElement is true) goes into it.

  • While_Loop(Condition, Code, Arguments) - Creates a while loop which will keep on iterating when the condition (MUST BE A FUNCTION) returns true, where the body code is a function and the extra arguments goes into it.

  • Open_File(Name, Mode, Code, Arguments) - Opens the file with that name in that mode, where the body code is a function which will always have the file be put into it as the first argument as well as the extra arguments.

  • Invoke_Function(Function, Arguments) - Runs the given function with the given arguments.

  • Values_To_Array(Values) - Converts the values given to a list and returns it.

  • Function_Creator(Argument_List, Lambda_List) - Goes through each lambda function in the lambda list and runs it, feeding in all arguments from the argument list.

There are also 2 values, true and false, which are just True and False (mimicking how most of python is lowercase except those 2 keywords).

Challenges

This module could create a few coding challenges such as using its functions as much as possible to make the most 'readable' code, excluding a few functions that could take it out of proportion. If you would like to make reading your code horrible better, this is the perfect opportunity!

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

readable_code-1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

readable_code-1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file readable_code-1.0.tar.gz.

File metadata

  • Download URL: readable_code-1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for readable_code-1.0.tar.gz
Algorithm Hash digest
SHA256 4dc767b05b8153a0267f43c24f0f1602d61d17b6cf2c13860d6ae56daf25b399
MD5 1c47615598525c757816f2b6dc507488
BLAKE2b-256 2feb5efca6053e1aba551f7cadc467a32ded00e3e4ba4f59227f3c340da51080

See more details on using hashes here.

File details

Details for the file readable_code-1.0-py3-none-any.whl.

File metadata

  • Download URL: readable_code-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for readable_code-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a6f53ec8cd888bf94ad28f577d2430d55e991797a19714dc9cf0c59135fd4c7
MD5 f1ab03c691caca25f63017272f44e55b
BLAKE2b-256 4b1f36b47cc0d14540c28fbb5c0e8a447a379208d3711e1ce48ab48914ce6526

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