Skip to content

Commit

Permalink
Merge pull request #28301 from HeavyTony2/2024-11-21-b
Browse files Browse the repository at this point in the history
Adding safehttpx
  • Loading branch information
synapticarbors authored Nov 22, 2024
2 parents 17eba72 + f9154d6 commit 90a9f8e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes/safehttpx/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python_min: "3.10"
44 changes: 44 additions & 0 deletions recipes/safehttpx/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "safehttpx" %}
{% set version = "0.1.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/safehttpx-{{ version }}.tar.gz
sha256: 6e1bedf7767213300da5e4cb7e823e98edc934f17ca192d2e585111a2b899149

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python {{ python_min }}
- hatchling
- pip
run:
- python >={{ python_min }}
- httpx

test:
imports:
- safehttpx
commands:
- pip check
requires:
- pip
- python {{ python_min }}

about:
summary: A small Python library created to help developers protect their applications from Server Side Request Forgery (SSRF) attacks.
license: Apache-2.0
license_file: LICENSE
home: https://github.com/gradio-app/safehttpx
description: A small Python library created to help developers protect their applications from Server Side Request Forgery (SSRF) attacks. It implements an **asynchronous GET method** called `safehttpx.get()`, which is a wrapper around `httpx.AsyncClient.get()` while performing DNS validation on the supplied URL using [Google DNS](https://developers.google.com/speed/public-dns).

extra:
recipe-maintainers:
- HeavyTony2

0 comments on commit 90a9f8e

Please sign in to comment.