A toolbox for daily use. This is just a toolbox to make my life easier. Maybe yours too..
Project description
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...
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
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))
```
Wifi
Example:
```
from codewars.wifi import Wifi
wifi = Wifi("enp0s31f6")
sniff_results = wifi.sniff(totalResults=10)
print(sniff_results)
info_results = wifi.info(sniff_results)
print(info_results)
wifi.sniff_forever(duration=300)
```
Refer to docstrings for more detailed documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
codewars-0.0.4a0-py3-none-any.whl
(12.6 kB
view hashes)
Close
Hashes for codewars-0.0.4a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb3ce486bbf0647f25a4dca46efbec43b5a938816f7fe7dbe953ea74dce313b |
|
MD5 | 2f0141be92a724b6aa00f20ee9ace5d7 |
|
BLAKE2b-256 | df6c95d38b199ccaf670a254a84c16519441fb1f4bd99e4cb99835e74f69b86c |