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.2.tar.gz (8.9 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.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pman_tester-1.0.2.tar.gz
  • Upload date:
  • Size: 8.9 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.2.tar.gz
Algorithm Hash digest
SHA256 61250a559599d8f6e3dc9e1dbedea94a51757404758c219f2ec97b763d1e179a
MD5 da6662035d8983fc2044b6db3d432aba
BLAKE2b-256 43d9158eff72d02db08acf0753773ed000a0498e5862c371b2beeb084ad8df44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pman_tester-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c159b29a66ccfe136d5eee57692000952c86c21345d73fc78e7997bf34bfa234
MD5 eb0692971451c21c99a21b44b5cdafaf
BLAKE2b-256 d544e9b4c0875f20ea590f10ff76b9a073e4dcb00ab74a6f99ab920b4891c5ed

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