https://github.com/tinyjin/appversion
Get app version from playstore, appstore.
https://github.com/tinyjin/appversion
Last synced: 10 months ago
JSON representation
Get app version from playstore, appstore.
- Host: GitHub
- URL: https://github.com/tinyjin/appversion
- Owner: tinyjin
- License: mit
- Created: 2019-08-11T12:06:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:00:15.000Z (about 3 years ago)
- Last Synced: 2025-02-26T23:16:41.496Z (11 months ago)
- Language: Python
- Homepage: https://pypi.org/project/appversion/
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AppVersion is a library that can fetch app version from playstore or appstore.
You only need to prepare the package name or bundle id as argument.
also It has various util function for calculate version.
# Install
```shell script
pip install appversion
```
# Quick start
```python
from av import AppVersion
# arg - android package name.
playstore_version = AppVersion.playstore('com.youjinui.endword')
print(playstore_version) # 1.2.1
# arg - iOS bundle id.
appstore_version = AppVersion.appstore('com.youjinui.endword')
print(appstore_version) # 1.0.0
```
# Calculate version
## Max
This function return max version from two arguments.
```python
from av import AppVersion
max_version = AppVersion.maxv('0.0.1', '0.0.2')
print(max_version)
```
return `0.0.2`
## Min
This function return min version from two arguments.
```python
from av import AppVersion
min_version = AppVersion.minv('1.0.a', '1.0.b')
print(min_version)
```
return `1.0.a`
## Equals
This function returns a boolean value of whether the version are equals or different.
```python
from av import AppVersion
is_equal = AppVersion.equals('1.1', '1.1.0.0.0')
print(is_equal)
```
return `True`
## Compare
This function returns a boolean value of whether the arg1 is greater than arg2.
```python
from av import AppVersion
is_arg1_greater_than_arg2 = AppVersion.compare('1.1.12', '1.1.3')
print(is_arg1_greater_than_arg2)
```
return `True`
# Authors
tinyjin - [Github](https://github.com/tinyjin), [Blog](https://wlsdml1103.blog.me)
# License
This library has MIT License.