astapk
Android proje kaynak kodu içeren (veya APK ile ilgili) bir .zip dosyasını
alıp terminalde hızlı bir önizleme gösteren küçük bir Python kütüphanesi.
Kurulum
pip install -e .
(Bu klasörün içindeyken çalıştır. -e ile geliştirme modunda kurulur.)
Kullanım
import astapk
astapk.preview("Arevis.zip")
# veya aynı şey:
astapk.open("Arevis.zip")
Bu komut:
- Zip'i geçici bir klasöre çıkarır
AndroidManifest.xmlvebuild.gradledosyalarını bulup okur (paket adı, versiyon, minSdk/targetSdk, izinler)- Klasör/dosya ağacını simgelerle terminale basar
- Sana bir
ProjectInfonesnesi döndürür, dilersen koddan da kullanabilirsin:
info = astapk.preview("Arevis.zip")
print(info.package_name) # "com.atx.arevis"
print(info.permissions) # ["android.permission.INTERNET", ...]
print(info.kotlin_files) # 9
Parametreler
astapk.preview(
zip_path, # zip dosyasının yolu
extract_to=None, # nereye çıkarılsın (verilmezse geçici klasör)
keep=True, # False ise ve extract_to verilmemişse, işlem sonunda siler
)
Örnek çıktı
============================================================
📦 astapk önizleme: Arevis.zip
============================================================
Açıldığı yer : /tmp/astapk_xxxxxx/Arevis
Toplam dosya : 19 (42.1KB)
Kaynak kod : 9 Kotlin, 0 Java dosyası
------------------------------------------------------------
🤖 Android proje bilgisi
Paket adı : com.atx.arevis
Versiyon : 1.0.0-alpha (code 1)
minSdk : 24 targetSdk: 34
İzinler (11):
• INTERNET
• BATTERY_STATS
...
------------------------------------------------------------
🗂 Dosya ağacı
------------------------------------------------------------
📁 app/
⚙️ build.gradle
📁 src/
...
============================================================
Metadata
Release files for astapk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| astapk-0.1.0.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| astapk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / astapk-0.1.0.tar.gz
| Download URL | astapk-0.1.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6054d8bcea9bdf5896453717c51d20b3dd6bdbb3028dd6faf9fbac38fa0974c
|
|
BLAKE2b-256 checksum How to use checksums |
53131bebee22f9f027df55da0e1dcfdd8041190c10fa60d40bdb192ab0391ee9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / astapk-0.1.0-py3-none-any.whl
| Download URL | astapk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8169d1991847f191743dc473edb9a83e9416e724da67d9b92ededb3d30ba804
|
|
BLAKE2b-256 checksum How to use checksums |
0eef4cb08debd3672c06d76df65cc0f2abb87e26e25afe7593d5a8457d7e35b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for astapk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.