Skip to main content

A toolbox for daily use. This is just a toolbox to make my life easier. Maybe yours too..

Project description

[![Codewars.nl](https://codewars.nl/static/img/logo.png)](https://codewars.nl/)

>Make sure to install all the dependencies needed for each individual module.

## Dependencies ### Bluetooth: sudo apt-get install libbluetooth-dev

— ## Install latest version (stable)

pip install codewars

## Install development version (unstable)

pip install git+https://github.com/Annihilator708/codewars@master

# Examples ## Info

>In the following section you will find a brief example on how to use this >code. This library is ment to grow over time so more examples to come… >I prep my work in advance so documentation is a thing and will be present in >the near future. But because I’m in a early phase of the project I still have >not generated my documentation. Don’t let that fool you.. I try to keep >my docstrings as up-to-date as possible. There are plenty of examples >in the module just open the code and see where it imports anything from >codewars. Not only the docstrings are usefull currently but perhaps also my >own used tests to see if the setup works correctly. >Those examples below are however parts of raw snippets of test code and might >not feel due to the confirm of PEP8 or flake8. Excuse mwha.

## Logger

Example: ` from codewars.logger import Logger logger = Logger(appname="test", mode="DEBUG", write=False) logger._testLoggerClass() logger.info("Hello World!") `

>Note >—- >The whole module makes use of the Logger class instead of the print method.

## BlueTooth

Example: ` from codewars.bluetooth import Bluetooth bt = Bluetooth()  # Initialize the class, Scans once scan_results1 = bt.scan()  # Scan area for the default 10 seconds, this is \ # also executed when this class initializes scan_results2 = bt.run_until_discovered()  # Scan until a device is found print("Scan results1: {}".format(scan_results1)) print("Scan results2: {}".format(scan_results2)) `

— #### Refer to docstrings for more detailed documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for codewars, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size codewars-0.0.4-py2.7.egg (8.6 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size codewars-0.0.4-py2-none-any.whl (9.1 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size codewars-0.0.4-py3.6.egg (14.3 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size codewars-0.0.4-py3-none-any.whl (13.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size codewars-0.0.4.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page