A GUI-based API testing tool
Project description
Project Info
A tiny tool like Postman to test api
Notes
- Python Version: The script should work with Python 3.6+ (tested with 3.11 based on your previous interactions). Ensure this is clear in the README.
- Optional Virtual Environment: You can suggest using a virtual environment for isolation:
-
Optional: Use a Virtual Environment
python -m venv venv
source venv/bin/activate # macOS
venv\Scripts\activate # Windows
pip install PyQt5 requests
- **Troubleshooting**: Add a note about common issues:
- If `pip` fails, ensure it's updated: `pip install --upgrade pip`.
- On macOS, if you see permission errors, try `pip install --user` or use `sudo`.
- On Windows, ensure Python is in your PATH (check with `python --version`).
- Verify module installation with `pip show PyQt5 requests`.
## Packaging and Distribution (Python Package)
To distribute the `p.py` script as a Python package, use `setuptools` to create a `pip`-installable package. This requires Python 3.6+ on the target computer.
### Steps to Package
1. **Create Project Files**:
- `requirements.txt`:
PyQt5>=5.15.6
requests>=2.28.0
2. **Install Build Tools**:
```markdown
pip install setuptools wheel
3. **Create the Package:Navigate to the project directory:**:
```markdown
python3 setup.py sdist bdist_wheel
4. **Test locally**
```markdown
pip install .
5. **Install on Windows**
```markdown
pip install pman_tester-1.0.0-py3-none-any.whl
6. **Add environment for Windows**
```markdown
C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python311\Script
C:\Users\%USERNAME%\AppData\Roaming\Python\Python313\Scripts\pman_tester.exe
7. **Upload to cloud**
```markdown
pip install twine
8. **Test Cloud** https://test.pypi.org/account/register/
```markdown
twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ pman_tester
pman-tester
9. **Product Cloud**
```markdown
twine upload dist/*
10. **Check Path**
```markdown
pip show pman_tester
11. *Install*
```markdown
pip install pman_tester
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
pman_tester-1.0.4.tar.gz
(9.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pman_tester-1.0.4.tar.gz.
File metadata
- Download URL: pman_tester-1.0.4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cec915aa126a77e410dc9044aa67dd3eeb14436773e4e121857cef419dc53a
|
|
| MD5 |
0a60008b0de232fad8394f34495c5a3f
|
|
| BLAKE2b-256 |
e5529608e3097130ae890a6a969d34fc6fad40ca384de2da8c81c08a99738b2e
|
File details
Details for the file pman_tester-1.0.4-py3-none-any.whl.
File metadata
- Download URL: pman_tester-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a45c1cd1212f22af48c311633a0e2a5decf86015f478181e8b2e2280146ea4
|
|
| MD5 |
1996e97868f2a046181e04247c306ff0
|
|
| BLAKE2b-256 |
c34bc59f9907a4ad3cec7666c3edc3be25c8e91644732cfbb972265a7470c7d7
|