+
Skip to content

amberIS01/PythonAsS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Intern Assignment

A comprehensive Python project demonstrating backend development, database management, virtual Android system simulation, and networking concepts.

Project Overview

This project consists of four main components:

  1. Backend API (Flask)

    • RESTful API endpoints for app management
    • SQLite database integration
    • CRUD operations for app data
  2. Database Management

    • SQLite database with SQLAlchemy ORM
    • Schema for app information storage
    • Efficient data retrieval and management
  3. Virtual Android System

    • Android system simulation
    • System information monitoring
    • APK installation simulation
  4. Networking Integration

    • TCP/HTTP communication
    • System information transmission
    • Server-client interaction

Features

  • RESTful API endpoints:
    • POST /add-app: Add new app details
    • GET /get-app/{id}: Retrieve app information
    • DELETE /delete-app/{id}: Remove app data
  • SQLite database for data persistence
  • Virtual Android system simulation
  • Real-time system information monitoring
  • Secure network communication

Setup Instructions

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py

API Documentation

The API documentation is available at http://localhost:5000 when the server is running.

Technologies Used

  • Python 3.x
  • Flask
  • SQLAlchemy
  • SQLite
  • ADB Shell
  • Requests
  • psutil

Author

Sahil

License

MIT License

Project Structure

.
├── app.py              # Main Flask application
├── init_db.py         # Database initialization script
├── android_simulator.py # Virtual Android system simulation
├── network_client.py   # Networking integration
├── requirements.txt    # Project dependencies
└── README.md          # This file

Testing the API

Example curl commands:

  1. Add an app:
curl -X POST http://localhost:5000/add-app \
  -H "Content-Type: application/json" \
  -d '{"app_name": "TestApp", "version": "1.0.0", "description": "Test application"}'
  1. Get app details:
curl http://localhost:5000/get-app/1
  1. Delete an app:
curl -X DELETE http://localhost:5000/delete-app/1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载