Skip to content

Commit 93eae70

Browse files
author
Andrei
authored
Merge pull request #30 from AndreiDrang/main
0.6
2 parents 015bd12 + 0871f96 commit 93eae70

73 files changed

Lines changed: 1284 additions & 1767 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/.coveragerc renamed to .coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ omit =
44
*/tests/*
55

66
include =
7-
*/python3_captchaai/*
7+
*/python3_capsolver/*
88

99

1010
[report]
@@ -13,4 +13,4 @@ omit =
1313
*/tests/*
1414

1515
include =
16-
*/python3_captchaai/*
16+
*/python3_capsolver/*

.gitconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[user]
2+
name = Andrei Drang
3+
email = python-captcha@pm.me
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Test Build
1+
name: Build
22

33
on:
44
push:
55
branches: [ "main", "release"]
66
paths:
7-
- '.github/workflows/test_build.yml'
7+
- '.github/workflows/build.yml'
88
- 'src/**'
99
- 'Makefile'
1010
pull_request:
1111
branches: [ "main", "release"]
1212
paths:
13-
- '.github/workflows/test_build.yml'
13+
- '.github/workflows/build.yml'
1414
- 'src/**'
1515
- 'Makefile'
1616

@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: ["3.7", "3.8", "3.9", "3.10"]
23+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2424

2525
steps:
2626
- uses: actions/checkout@v3

.github/workflows/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: ["3.7", "3.8", "3.9", "3.10"]
23+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2424

2525
steps:
2626
- uses: actions/checkout@v3
@@ -33,4 +33,4 @@ jobs:
3333
run: make install
3434

3535
- name: PYPI install checking
36-
run: pip install python3-captchaai
36+
run: pip install python3-capsolver

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: ["3.7", "3.8", "3.9", "3.10"]
27+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2828

2929
steps:
3030
- uses: actions/checkout@v3
@@ -37,6 +37,6 @@ jobs:
3737
run: |
3838
pip install --upgrade pip
3939
pip install -r requirements.style.txt
40-
40+
4141
- name: Lint
4242
run: make lint

.github/workflows/sphinx.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sphinx build
1+
name: Sphinx docs
22

33
on:
44
push:
@@ -20,9 +20,6 @@ jobs:
2020
- name: Build docs requirements
2121
run: pip install -r docs/requirements.txt
2222

23-
- name: Build library requirements
24-
run: pip install -r src/requirements.txt
25-
2623
- name: Build docs
2724
run: make doc
2825

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
python_rucaptcha.egg-info/
31
\.idea/
4-
Web-Interface/
5-
/files/ico.png
6-
src/python_rucaptcha/__pycache__/
7-
build/
82

93
\.vscode/
104

11-
src/examples/callback_examples/__pycache__/
12-
13-
CaptchaTester/callback_examples/__pycache__/
14-
155
__pycache__/
166

177
dist/
188

199
env/
2010
/.coverage
21-
/src/python3_captchaai.egg-info/
11+
/src/python3_capsolver.egg-info/
2212
/src/.coverage
2313
/src/coverage/lcov.info
2414
/src/htmlcov/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Andrei
3+
Copyright (c) 2023 Andrei
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
install:
22
cd src/ && pip install -e .
33

4+
remove:
5+
pip uninstall python3_capsolver -y
6+
47
refactor:
58
black docs/
69
isort docs/
710

8-
cd src/ && \
911
autoflake --in-place \
1012
--recursive \
1113
--remove-unused-variables \
1214
--remove-duplicate-keys \
1315
--remove-all-unused-imports \
1416
--ignore-init-module-imports \
15-
python3_captchaai/ tests/ && \
16-
black python3_captchaai/ tests/ && \
17-
isort python3_captchaai/ tests/
17+
src/ tests/ && \
18+
black src/ tests/ && \
19+
isort src/ tests/
1820

1921
lint:
20-
cd src/ && \
21-
autoflake --in-place --recursive python3_captchaai/ --check && \
22-
black python3_captchaai/ --check && \
23-
isort python3_captchaai/ --check-only
22+
autoflake --in-place --recursive src/ --check && \
23+
black src/ --check && \
24+
isort src/ --check-only
2425

2526
upload:
2627
pip install twine
2728
cd src/ && python setup.py upload
2829

29-
tests:
30-
cd src/ && \
31-
coverage run --rcfile=.coveragerc -m pytest -s tests --disable-warnings && \
30+
tests: install
31+
coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --pastebin=all tests --disable-warnings && \
3232
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
3333
coverage html --precision=3 --skip-empty -d coverage/html/ && \
3434
coverage xml -o coverage/coverage.xml
3535

36-
doc:
36+
doc: install
3737
cd docs/ && \
3838
make html -e

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
1-
# python3-captchaai
2-
![](files/CaptchaAISm.png)
1+
# python3-capsolver
2+
![Python3-Capsolver](https://github.com/AndreiDrang/python3-capsolver/blob/main/files/CapsolverSm.png)
33

4-
[![PyPI version](https://badge.fury.io/py/python3-captchaai.svg)](https://badge.fury.io/py/python3-captchaai)
5-
[![Python versions](https://img.shields.io/pypi/pyversions/python3-captchaai.svg?logo=python&logoColor=FBE072)](https://badge.fury.io/py/python3-captchaai)
6-
[![Downloads](https://pepy.tech/badge/python3-captchaai/month)](https://pepy.tech/project/python3-captchaai)
4+
[![Capsolver](https://user-images.githubusercontent.com/16991365/234852229-6e4b3f3c-f498-4fd5-9a6b-f7f269dd4bfc.gif)](https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1)
75

8-
[![Maintainability](https://api.codeclimate.com/v1/badges/3431fd3fe71baf7eb9da/maintainability)](https://codeclimate.com/github/AndreiDrang/python3-captchaai/maintainability)
9-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/323d4eda0fe1477bbea8fe8902b9e97e)](https://www.codacy.com/gh/AndreiDrang/python3-captchaai/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AndreiDrang/python3-captchaai&utm_campaign=Badge_Grade)
10-
[![codecov](https://codecov.io/gh/AndreiDrang/python3-captchaai/branch/main/graph/badge.svg?token=2L4VVIF4G8)](https://codecov.io/gh/AndreiDrang/python3-captchaai)
6+
[![PyPI version](https://badge.fury.io/py/python3-capsolver.svg)](https://badge.fury.io/py/python3-capsolver)
7+
[![Python versions](https://img.shields.io/pypi/pyversions/python3-capsolver.svg?logo=python&logoColor=FBE072)](https://badge.fury.io/py/python3-capsolver)
8+
[![Downloads](https://pepy.tech/badge/python3-capsolver/month)](https://pepy.tech/project/python3-capsolver)
119

12-
[![Build check](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test_build.yml)
13-
[![Installation check](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/install.yml)
14-
[![Test](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/test.yml)
15-
[![Lint](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-captchaai/actions/workflows/lint.yml)
10+
[![Maintainability](https://api.codeclimate.com/v1/badges/3c30167b5fb37a0775ea/maintainability)](https://codeclimate.com/github/AndreiDrang/python3-capsolver/maintainability)
11+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/323d4eda0fe1477bbea8fe8902b9e97e)](https://www.codacy.com/gh/AndreiDrang/python3-capsolver/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AndreiDrang/python3-capsolver&utm_campaign=Badge_Grade)
12+
[![codecov](https://codecov.io/gh/AndreiDrang/python3-capsolver/branch/main/graph/badge.svg?token=2L4VVIF4G8)](https://codecov.io/gh/AndreiDrang/python3-capsolver)
1613

14+
[![Sphinx build](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/sphinx.yml/badge.svg?branch=release)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/sphinx.yml)
15+
[![Build](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/build.yml)
16+
[![Installation](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/install.yml)
17+
[![Tests](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/test.yml)
18+
[![Lint](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-capsolver/actions/workflows/lint.yml)
1719

18-
Python 3 library for [Capsolver](https://capsolver.com/) service API.
20+
21+
Python 3 library for [Capsolver](https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1) service API.
1922

2023
Tested on UNIX based OS.
2124

22-
The library is intended for software developers and is used to work with the [Capsolver](https://capsolver.com/) service API.
25+
The library is intended for software developers and is used to work with the [Capsolver](https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1) service API.
2326

2427
***
2528

@@ -31,24 +34,29 @@ Or email python-captcha@pm.me
3134

3235
## How to install?
3336

34-
We recommend using the latest version of Python. `python3-captchaai` supports Python 3.7+.
37+
We recommend using the latest version of Python. `python3-capsolver` supports Python 3.7+.
3538

3639
### pip
3740

3841
```bash
39-
pip install python3-captchaai
42+
pip install python3-capsolver
4043
```
4144

4245
## How to use?
4346

44-
Is described in the [documentation-website](https://andreidrang.github.io/python3-captchaai/).
47+
Is described in the [documentation-website](https://andreidrang.github.io/python3-capsolver/).
4548

4649

4750
## How to test?
4851

4952
1. You need set ``API_KEY`` in your environment(get this value from you account).
5053
2. Run command ``make tests``, from root directory.
5154

55+
56+
### Changelog
57+
58+
Check [releases page](https://github.com/AndreiDrang/python3-capsolver/releases).
59+
5260
### How to get API Key to work with the library
5361
1. On the page - https://dashboard.capsolver.com/overview/user-center
5462
2. Find it: ![img.png](files/img.png)

0 commit comments

Comments
 (0)