Skip to main content

wifi speed test package

Project description

GitLab CI/CD Project - WiFi Speed Tester

PyPI version Python Versions License Build Status

A lightweight Python package demonstrating GitLab CI/CD capabilities with an interactive WiFi Speed Test dashboard for Jupyter notebooks.

✨ Features

  • 🚀 Interactive WiFi Speed Test Dashboard
  • 📊 Real-time speed metrics visualization with Plotly
  • 📡 Network information display
  • 📷 Snapshot capability to save test results
  • 🔄 Fully automated CI/CD pipeline with GitLab
  • 📦 Seamless PyPI package deployment
  • ⚙️ Cross-platform compatibility (Windows, macOS, Linux)
  • 🛠️ Python package development best practices

📋 Table of Contents

🔧 Installation

Install the package using pip:

pip install gitlab-cicd-project

🚀 Quick Start

After installation, start a Jupyter notebook and run:

from gitlab_cicd_project import hello

# Launch the WiFi Speed Test Dashboard
hello()

You can also use the package from the command line:

gitlab-cicd-project

Alternatively, you can use it in your Python code:

from gitlab_cicd_project import hello

# Print welcome message
hello()

📝 Usage Examples

WiFi Speed Test Dashboard

from gitlab_cicd_project import WifiSpeedTester

# Create a speed tester instance
tester = WifiSpeedTester()

# Display the dashboard
tester.display()

WiFi Speed Test Dashboard

The dashboard provides:

  • Real-time download and upload speed monitoring
  • Ping latency tracking
  • Current WiFi network information
  • Interactive charts and gauges
  • Snapshot functionality to save test results as JSON

📦 Dependencies

This package relies on the following key libraries:

  • ipywidgets (8.0.6+): Interactive widgets for Jupyter
  • plotly (5.24.1+): Interactive visualization library
  • speedtest-cli (2.1.3+): Speed test measurement
  • pandas (2.1.3+): Data manipulation
  • psutil (6.0.0+): System monitoring and network information
  • jupyter (1.0.0+): Jupyter notebook environment
  • ipython (8.12.0+): Interactive Python shell

🖥️ Environment Support

⚠️ Important: Currently Only Supports Jupyter Notebook Environment

This package is designed to work exclusively within Jupyter Notebook environments. The interactive dashboard features rely on Jupyter's widget system and will not function in:

  • Standard Python scripts
  • Command-line interfaces
  • Regular web browsers without Jupyter

To use this package, you must run it from within a Jupyter notebook.

🛠️ Development Setup

Prerequisites

  • Python 3.6 or higher
  • pip

Local Development

  1. Clone the repository:

    git clone https://gitlab.com/gitlab-shrprabh/gitlab-cicd-project.git
    cd gitlab-cicd-project
    
  2. Install development dependencies:

    pip install -e ".[dev]"
    

📦 Building the Package

  1. Install build tools:

    pip install setuptools wheel twine
    
  2. Build distribution packages:

    python setup.py sdist bdist_wheel
    

    This will create distribution files in the dist/ directory.

🚢 Publishing to PyPI

Manual Publishing

  1. Set up your PyPI credentials:

    export TWINE_USERNAME=__token__
    export TWINE_PASSWORD=your-pypi-token
    
  2. Upload the package to PyPI:

    twine upload dist/*
    

GitLab CI/CD Integration

This project includes GitLab CI/CD configuration for automated testing and publishing:

  1. Set the following environment variables in your GitLab CI/CD settings:

    • TWINE_USERNAME: Set to __token__
    • TWINE_PASSWORD: Your PyPI API token
  2. The CI/CD pipeline will automatically:

    • Run tests
    • Build distribution packages
    • Publish to PyPI (on tagged releases)

CI/CD Pipeline Workflow

  1. Build Stage: Creates distribution packages
  2. Test Stage: Runs automated tests
  3. Publish Stage: Uploads the package to PyPI (only on tagged commits)

To create a new release:

git tag v0.1.0
git push origin v0.1.0

📋 Release History

v0.0.3 (2025-07-04)

  • ✨ Added interactive WiFi Speed Test Dashboard
  • 📊 Real-time speed metrics with Plotly visualization
  • 📡 WiFi network information display
  • 📷 Snapshot feature to save test results as JSON
  • 📈 Multi-chart dashboard with download, upload, and ping metrics
  • 🔄 Continuous testing capability with adjustable intervals

v0.0.1 (2025-07-04)

  • 🎉 Initial release
  • ✨ Basic functionality with hello() function
  • 📦 Package structure set up with proper imports
  • 🚀 Command-line interface
  • 🔄 GitLab CI/CD pipeline integration

v0.0.0 (2025-06-28)

  • 🚧 Pre-release development version
  • 🏗️ Basic project structure

📄 License

This project is licensed under the MIT License - see below for a summary:

MIT License

Copyright (c) 2025 Shreyas Prabhakar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

👥 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a pull request

Code of Conduct

  • Be respectful and inclusive
  • Provide constructive feedback
  • Focus on the best outcome for the project

📞 Support

If you encounter any issues or have questions, please open an issue on the GitLab repository.


Made with ❤️ by Shreyas Prabhakar

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

gitlab_cicd_project-0.0.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_cicd_project-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_cicd_project-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b4ddcefa18d3bfec69716603078d0780be5adc1ccf3c7bcc20008dd2faae2a7
MD5 ee817234e77bd47f6e1449596a2c8fb4
BLAKE2b-256 9600044237175bf4172de16efe01551bff75f6b222996839031bfdcd89e1250a

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