Skip to main content

Official CLI for AnvPy to sync and run Python projects on Android.

Project description

AnvPy CLI

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 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"

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:

  1. Detects the project directory.
  2. Verifies that main.py exists.
  3. Connects to the AnvPy application running on your Android device.
  4. Synchronizes only the files that have changed.
  5. Removes files deleted from the Android project.
  6. 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

Why AnvPy CLI?

Developing for Android often involves repetitive deployment steps such as manually copying project files, connecting a USB cable, configuring ADB, or setting up custom synchronization workflows before every test.

AnvPy CLI eliminates these repetitive tasks by automatically discovering your Android device, synchronizing only modified files, and launching your project with a single command over your local network. This significantly reduces iteration time, allowing you to focus on building your application instead of managing deployment.


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

anvpy-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

anvpy-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file anvpy-0.1.0.tar.gz.

File metadata

  • Download URL: anvpy-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for anvpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3959f50cadaaf3e01a02f2d307d6348fa088d4d9c88000e862a37c71e1f3d59f
MD5 bc7f1d0d4a1c8d144dc98f9b84e7de0e
BLAKE2b-256 1a2338570733989917d6c4ca5918d459ac29200a24594e6adbc10e5ce5b31f72

See more details on using hashes here.

File details

Details for the file anvpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: anvpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for anvpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 386b78cc364b8eca1b38e9be1a5ef7ccbba952e1a2e75a31880ade881f889eb7
MD5 e01e9f42c5c2b735a29a1f77881b0097
BLAKE2b-256 c696f99fbfea8b07b60456f7015d373c33c3844761dd2a8e6a4152ac7a0232dc

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