You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gitlab-cicd-project

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-cicd-project

wifi speed test package

0.0.4
pipPyPI
Maintainers
1

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

  • Clone the repository:

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

    pip install -e ".[dev]"
    

📦 Building the Package

  • Install build tools:

    pip install setuptools wheel twine
    
  • Build distribution packages:

    python setup.py sdist bdist_wheel
    

    This will create distribution files in the dist/ directory.

🚢 Publishing to PyPI

Manual Publishing

  • Set up your PyPI credentials:

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

    twine upload dist/*
    

GitLab CI/CD Integration

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

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

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

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

CI/CD Pipeline Workflow

  • Build Stage: Creates distribution packages
  • Test Stage: Runs automated tests
  • 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:

  • Fork the repository
  • Create a feature branch: git checkout -b feature/amazing-feature
  • Commit your changes: git commit -m 'Add amazing feature'
  • Push to the branch: git push origin feature/amazing-feature
  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts