Skip to main content

Client for detecting harmful SQL queries using a third-party API

Project description

# Hacking Shield

**Hacking Shield** is a Python client for detecting harmful SQL queries using a third-party API. It helps developers ensure the security of their applications by identifying potentially malicious SQL statements before they can be executed.

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [API Reference](#api-reference)
- [Contributing](#contributing)
- [License](#license)

## Features

- Detect harmful SQL queries using a third-party API.
- Simple and easy-to-use client interface.
- Supports authorization with API keys for secure access.
- Easy installation with pip.

## Installation

You can install the package using pip:

```bash
pip install hacking_shield

Usage

Here's a quick example of how to use the Hacking Shield client:

from hacking_shield import SQLDetectionClient

# Initialize the client with your API key
client = SQLDetectionClient(api_key="your_api_key")

# Define a SQL query
sql_query = "SELECT * FROM users WHERE id = 1 OR 1=1;"

# Detect harmful SQL
result = client.detect_harmful_sql(sql_query)

if result:
    print("Detection Result:", result)

Replace "your_api_key" with your actual API key.

API Reference

SQLDetectionClient

  • __init__(api_key: str): Initializes the client with the provided API key.

  • detect_harmful_sql(sql_query: str) -> dict: Sends the SQL query to the API for detection. Returns a dictionary with the result.

Contributing

Contributions are welcome! If you have suggestions for improvements or find bugs, please open an issue or submit a pull request.

Steps to Contribute

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


### Customization Suggestions:
- **Add More Features**: If there are additional features or functionalities, feel free to expand the "Features" section.
- **Include Example Outputs**: If you have specific expected outputs from the API, you can include those in the "Usage" section.
- **Contributors Section**: If there are collaborators, consider adding a "Contributors" section to give them credit.

### Notes:
- Ensure the formatting is correct when you copy it into your `README.md` file, especially for code blocks.
- You can add images, badges, or links to related projects as needed to enhance the README.

If you have specific details you’d like to include or any other adjustments, let me know!

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

hacking_shield-0.2.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

hacking_shield-0.2.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file hacking_shield-0.2.2.tar.gz.

File metadata

  • Download URL: hacking_shield-0.2.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for hacking_shield-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bf13746613c5a27acaff94866e90265be4dd57d66068b3376fcecf4f0abe3dd9
MD5 6d19532e56299c5962a9ff251666d72f
BLAKE2b-256 cebec4dbb01d5f063f0cd50dedb183ce22f04a3ecc10da1fbec82b33c0a22394

See more details on using hashes here.

File details

Details for the file hacking_shield-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hacking_shield-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c08715c255acfd1198bc042757d8fe03aca3cd112cd066103353810726754c
MD5 ad47a2e8a7f9886d7a24edc97d717d9a
BLAKE2b-256 b5c284b220c61601db409425792106da44b72adee2207b3056e1d9b8f7caaea7

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