Skip to main content

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 for testing**
  ```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
12. **Upgrade wont work =))**
I am sure your current setting will not be lost
13. **Uninstall and reinstall**
  ```markdown
  pip uninstall pman_tester
  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.5.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pman_tester-1.0.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pman_tester-1.0.5.tar.gz.

File metadata

  • Download URL: pman_tester-1.0.5.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for pman_tester-1.0.5.tar.gz
Algorithm Hash digest
SHA256 62fb20b7669a3752b8594dd55578b40fa279b67940301d5a8ae5286f6c5091d5
MD5 5d6d6755f357776aaa794cae84e50c34
BLAKE2b-256 d56a391b3078a3557154bac6aeb620a94d60f57c320175af79aa584c6fe03e8f

See more details on using hashes here.

File details

Details for the file pman_tester-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pman_tester-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for pman_tester-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 882d1fcb22f125de90ac79ab23c563554425935958e53fd50859b86014103e67
MD5 c320f5924f49d3862bca5e82b3be38b6
BLAKE2b-256 7a96259030da547fc567cb7986de3560fc31b0ac9b6b588526cc29adc8e62293

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page