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_List(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 3 values, true, false and none, which are just True, False and None (mimicking how most of python is lowercase except those 3 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.1.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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: readable_code-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c341159f927c2b1041e77e9f0f08b2c7996be4c96df72c72fc7e25da3f829ceb
MD5 f38011632024c18d62f722d348d141a9
BLAKE2b-256 9ba4bf20822aa84ffa99716743c6e63f0ce5d227ac524007cf25259188acf951

See more details on using hashes here.

File details

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

File metadata

  • Download URL: readable_code-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdac65dcd16875261c39a9ebb1aed556f178fff83836e297a1266b3825912af4
MD5 ea555eddfa699e686dde9428deae2a03
BLAKE2b-256 349fb8f15520cdf29b08fd7969f665ffdfab56bc4501198bdd217d73963da35e

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