Copyleaks Python SDK
Copyleaks (http://www.copyleaks.com) Python SDK
Installing dependencies
Create a virtual environment and install dependencies from requirements.txt by running (from the root):
> pip install -r requirements.txt
Setup
You can setup the project by downloading the source code and then running the following command:
> python setup.py install
Once installed you should get your API key from http://copyleaks.com and you can get started. For example, here is how you can count credits
>>> from copyleaks_sdk.copyleaks import CopyLeaks >>> self.copyleak = CopyLeaks(YOUR USERNAME HERE, API KEY HERE) >>> >>> def test_count_credits(self): >>> credit = self.copyleak.count_credits()
And here is how you can create a process by file:
>>> response = self.copyleak.create_process_by_file('full_path_of_file.txt')
There are tests available, kindly look at them for some example code.
Tests
Firstly, in order for tests to run you need a config.py under tests directory containing API credentials. For example, we will have a file tests/config.py with following contents:
username = 'USERNAME HERE' api_key = 'API KEY GOES HERE'
You can find tests under copyleaks-python-sdk/tests. Tests are written the built-in unittest module and can simply be run from the command line.
License
This project is licensed under the terms of MIT license.
Metadata
Release files for CopyleaksPythonSDK 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| CopyleaksPythonSDK-0.1.tar.gz | 3.9 kB | Without provenance | Details |
Release files / CopyleaksPythonSDK-0.1.tar.gz
| Download URL | CopyleaksPythonSDK-0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
deadce3c116c3873391a28e0a39b4073ea62ccc215b9fa559c3bc1ef403a2b45
|
|
BLAKE2b-256 checksum How to use checksums |
962d4fbdf70adb05bd3911ff6df27b846cdbfdfb2ef41bbfadf6d3fbfb46c3e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for CopyleaksPythonSDK 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.