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**
  ```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.1.tar.gz (8.8 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.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pman_tester-1.0.1.tar.gz
  • Upload date:
  • Size: 8.8 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.1.tar.gz
Algorithm Hash digest
SHA256 762c9fd8d667d7a616b9c6fb71e949cffa7849fccfe34b2985b0ddd15479efbe
MD5 642822d02072366e65da368cdf999fef
BLAKE2b-256 197f866ffe1b893ea9f42f36c3fb3fc58faf3c90c68297c29cc9c57e9ecbf643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pman_tester-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df521b0f72698e48e14e37d86462c134d11bd3f42210b600355cf91c1893f2ff
MD5 b95bbbb3b5cc9619830989c73fa9298b
BLAKE2b-256 4eb53e9edb3c0f973e89dc8dde9c3499db1ce37f9b21c5b0de74e5cd76d1ea0b

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