Skip to main content

Assorted Developer Functions by BD103

Project description

BD103's Personal Coding Package

A bunch of random developer related functions and modules that I use.

PyPI - Downloads PyPI - License Lines of code GitHub commit activity Code style: black

Usage

pip install bd103

Go to Github for the docs. :)

Patch Notes

0.1.6

Yay! This package is now on Github with tests, linters, and a running wiki. I have also done some module cleanup. Now, all console based modules (color.py, clear.py, etc.) are in the console.py module under a class with it's name. An example would be like the following.

from bd103.console import *
color.paint("cyan")

If you understand how packages work, it is also recommended to look at the source code to fully understand the layout.

This change does not affect the griddy module. Continue using that as normal.

Also, if you are using a windows device, run pip install BD103[windows] instead of the normal BD103. This imports Colorama so that the color class will work. There were also a few package based changes to griddy.py, but this shouldn't affect existing code.

0.1.5

Fixed link in Usage section of README.md, as well as implemented some happiness. Added requirements.txt. Implemented Black formatting. Created griddy.py module. Check docs for more. Adjusted __init__.py. Importing bd103 no longer imports the contents of other modules. Added bd103.help() command in __init__.py.

0.1.4

Fixed link. Main website is no longer being hosted on repl.it, it is now being hosted through Github Pages. Updated some other links, as well as put package in a repository. You can find it here.

0.1.3

Hopefully fixed the color.py module.

0.1.2

Fixed link in README.md.

0.1.1

Panik. I keep on making these silly mistakes in the color.py module, but thankfully it should be fixed now. The print(text, color) function is renamed to cprint(text, color).

0.1.0

Fixed the paint(color) function in color.py module, as it refered to the color print function, not base print.

We are now in the Beta stage. Yay! :7

0.0.10

Small adjustment, made the delay between printing characters in the scroll.py module customizable. Also made a clear.py module, that clears the console screen.

0.0.9

Created the scroll.py module, as well as adjusted __init__.py to import functions from modules, not just the modules themselves.

0.0.8

As 0.0.7 failed to fix engine/textdump.py, we finally found and fixed the issue. :P

0.0.7

Fixed extra " in engine/textdump.py. Updated 0.0.6 description.

0.0.6

Edited 0.0.3 description of README.md to fix recurrent module creation. Created a comment at the top of each module that says it's part of the package. Removed color variables, as they are only handy for local modules. Fixed engine/textdump.py trying to save to a non-existant folder.

0.0.5

Edited README.md to fix spacing issues. Made the engine sub-module. Created engine/textdump.py.

0.0.4

Fixed LICENSE.

0.0.3

Updated short description. Added __all__ variable in __init__.py. Updated README.md to have full module names. Renamed color() function to print(). Updated 0.0.1 description. Added load.py module. Created the parser.py module.

''' Parser '''
bd103.parser.grid(path) # Loads a text file and creates a list. Each item is a sepperate line of the file. Returns the list (array)
bd103.parser.space(text, identifier=" ") # Parses given string and returns an array. Each item is sepperated by spaces. "hi there" would return ["hi", "there"]
''' Load Bar '''
bd103.load.load(length=100) # Automatically makes a useless loading bar
bd103.load.loadbar(value, length=100) # Allows you to manually create a load bar that syncs with data.

0.0.2

Emptied __init__.py to fix error. Updated setup.py and redid README.md.

0.0.1

Initial package. Contains a basic color formatting module.

''' Functions '''
bd103.color.print(text, color) # Prints with text then resets formatting
bd103.color.paint(color) # Sets color permanently until reset

''' Colors '''
reset = "reset
red = "red"
yellow = "yellow"
green = "green"
cyan = "cyan"
blue = "blue"
magenta = "magenta"
black = "black"
white = "white"

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

BD103-0.1.6.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

BD103-0.1.6-py3-none-any.whl (6.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