Official command line toolkit for AnvPy development.
Project description
AnvPy CLI
Official command line toolkit for AnvPy development.
pip install anvpy
AnvPy CLI is the official command line interface for AnvPy (Android Versatile Python), a platform that enables developers to build and run Python applications on Android.
The CLI provides a seamless desktop development workflow by synchronizing your project from your computer to your Android device and launching it directly in the AnvPy application with a single command.
Features
- One command project synchronization and execution.
- Automatic device discovery on the local network.
- Incremental synchronization using file hashing.
- Simple setup with automatic connection management.
Requirements
- Python 3.8 or later.
- AnvPy X installed on an Android device.
- Computer and Android device connected to the same local network (same Wi-Fi network or mobile hotspot).
Installation
Install directly from PyPI:
pip install anvpy
Quick Start
Navigate to your project directory containing main.py:
cd MyProject
Run the project:
anvpy run
Or specify a project path:
anvpy run --path="C:\Projects\MyProject"
(Optinal) Can add a specific IP too:
anvpy run --ip="192.168.35.121"
Project Structure
AnvPy expects your project to contain a main.py entry point.
Example:
MyProject/
├── main.py
├── assets/
├── images/
├── data/
└── ...
How It Works
When you execute:
anvpy run
the CLI automatically:
- Detects the project directory.
- Verifies that
main.pyexists. - Connects to the AnvPy application running on your Android device.
- Synchronizes only the files that have changed.
- Removes files deleted from the Android project.
- Launches the synchronized project automatically on the device.
Example Output
[ACTION] Connecting to device...
[OK] Connected to 192.168.1.5
[ACTION] Syncing project: MyProject
[OK] Uploaded: main.py
[OK] Uploaded: assets/logo.png
[OK] Deleted: assets/old_logo.png
[OK] Sync complete (Uploaded: 2, Deleted: 1)
[ACTION] Running project: MyProject
[OK] Project started
License
This project is licensed under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anvpy-0.1.4.tar.gz.
File metadata
- Download URL: anvpy-0.1.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bcd25d5dab304453d931f20ad4f508dd62f0fac19a81c0f8909e50fda7f7c8c
|
|
| MD5 |
76d696312d264a6d9bfc4473c75df7b5
|
|
| BLAKE2b-256 |
95055fe84a6e1406bf3dc32d25c3014caf1358e6b51068a13d8dfe2a24d1c823
|
File details
Details for the file anvpy-0.1.4-py3-none-any.whl.
File metadata
- Download URL: anvpy-0.1.4-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.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd14e5b5d7055e194b2b671f3497c01b87606f4c527735640411b2d4a836305b
|
|
| MD5 |
efb2b47fc193e22470a1f3b71199fd1c
|
|
| BLAKE2b-256 |
5b8f17f0d3198a188679e4cdb8ac550abf248ce05792ce35c4c9b33d107184f0
|