Skip to main content

Simplifys aspects of python

Project description

                    GitHub issues GitHub forks GitHub stars GitHub license Python Python Hits

███████╗██╗███╗   ███╗██████╗ ██╗     ██╗███████╗██╗   ██╗
██╔════╝██║████╗ ████║██╔══██╗██║     ██║██╔════╝╚██╗ ██╔╝
███████╗██║██╔████╔██║██████╔╝██║     ██║█████╗   ╚████╔╝
╚════██║██║██║╚██╔╝██║██╔═══╝ ██║     ██║██╔══╝    ╚██╔╝
███████║██║██║ ╚═╝ ██║██║     ███████╗██║██║        ██║
╚══════╝╚═╝╚═╝     ╚═╝╚═╝     ╚══════╝╚═╝╚═╝        ╚═╝
                 built by @Necrownyx

Simplify Python

This is a python package designed to reduce the need for code to be over-complex by providing one-line solutions to problems.

Features list

  1. Json: Json is a package widely used for data storage.
  2. print: print is used to print to the terminal.

More coming soon.

Documentation

This is a section for the documentation for all of the modules in the package.

Json

First import the Json branch of the package with:

            from SimplifyPython import sjson

Then you can choose to create a file with:

            sjson.new(filename)

where filename is either the name of a json file without the .json or a filename with an extension for example data.app.json.

Or if you already have a file you can read it with:

            data = sjson.open(filename)

where filename is either the name of a file. This will set the data variable to be the contents of the json file.

Then when you are finished editing the data you can run:

            sjson.save(data, filename)

where data is the edited data to be put in the json file and filename is either the name of a file.

Print

First import the print branch with:

            from SimplifyPython import sprint

Then to use the package type:

            `sprint.{color}(message)

Where color is a color from the below list and treat message like a normal print command arguments.

  1. red
  2. pink
  3. purple
  4. blue
  5. lightblue
  6. brightblue
  7. green
  8. lightgreen
  9. yellow
  10. orange

This will print in the color of your choice.

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

SimplifyPython-0.0.5.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

SimplifyPython-0.0.5-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page