Skip to main content

Python bindings for askalono - rust library to detect license texts

Project description

pyaskalono

Python bindings for askalono - rust library to detect license texts

Installation

pip install pyaskalono

Use

from askalono import identify

LICENSE = '''
The MIT License (MIT)

Copyright © 2021 <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
'''

detected_license = identify(LICENSE)

detected_license.name # 'MIT'
detected_license.score # 0.9878048896789551

Publishing

To upload new package run maturin publish from pipenv environment

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

pyaskalono-0.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

pyaskalono-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

File details

Details for the file pyaskalono-0.1.2.tar.gz.

File metadata

  • Download URL: pyaskalono-0.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.4

File hashes

Hashes for pyaskalono-0.1.2.tar.gz
Algorithm Hash digest
SHA256 09acc83df4241827f2b4c261a5f5925d5e52820a569956fb2caafa138cf09617
MD5 b0e8b9e19fa5a7b867c0851294b67303
BLAKE2b-256 d0c764a0cd667f81b15db75e78764a40be49e57d1a56dc17961a53fbaecba3ff

See more details on using hashes here.

File details

Details for the file pyaskalono-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaskalono-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e957d4398e343c8a196af57f33a82214a0516c5df3a2eb277a4e74eea1d6c52c
MD5 75f6a2387be2bd82063d6c2135aa12c8
BLAKE2b-256 7865766480477ecb8486d5979f13b3adaea148947d27ad0fcb56416204068bf3

See more details on using hashes here.

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