Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kengoon/kivygetpymoduledeps
This simple script helps you to know all the hidden and sub-requirement of python packages used on your code
https://github.com/kengoon/kivygetpymoduledeps
buildozer kivy python-for-android
Last synced: 7 days ago
JSON representation
This simple script helps you to know all the hidden and sub-requirement of python packages used on your code
- Host: GitHub
- URL: https://github.com/kengoon/kivygetpymoduledeps
- Owner: kengoon
- Created: 2021-05-16T14:17:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T23:32:46.000Z (over 3 years ago)
- Last Synced: 2024-11-18T14:36:10.936Z (2 months ago)
- Topics: buildozer, kivy, python-for-android
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KIvyGetPyModuleDeps
This simple script helps you to know all the hidden and sub requirement of python packages used on your code. This gives you the info of requirements
to add to your `buildozer.spec` file and also what packages you have that are not included on the `python-for-android` receipe## Code Example of How To get all dependences
```python
from get_buildozer_py_deps import get_dependencies, check_non_existing_recipeprint(get_dependencies(["kivy", "pyrebase4"]) # you can add as many package as possible
print(check_non_existing_recipe(["kivy", "pyrebase4"]) # you can add as many package as possible, but your internet access must be on
```you can also run the file directly with this command
```
python3.8 __init__.py pyrebase4 kivy kivymd
```### Output of `get_dependencies` looks like this
```javascript
{
'kivy': ['pygments', 'kivy-garden', 'docutils'],
'pyrebase4': ['requests-toolbelt', 'gcloud', 'oauth2client', 'python-jwt', 'pycryptodome', 'requests'],
'kivy-garden': ['requests'],
'requests-toolbelt': ['requests'],
'gcloud': ['googleapis-common-protos', 'protobuf', 'oauth2client', 'six', 'httplib2'],
'oauth2client': ['pyasn1-modules', 'rsa', 'six', 'httplib2', 'pyasn1'],
'python-jwt': ['jwcrypto'],
'requests': ['chardet', 'urllib3', 'idna', 'certifi'],
'googleapis-common-protos': ['protobuf'], 'pyasn1-modules': ['pyasn1'],
'rsa': ['pyasn1'],
'jwcrypto': ['six', 'deprecated', 'cryptography'],
'cryptography': ['cffi']
}
```
it returns a dictionary of packages as `keys` and requirements as `values`### Output of `check_non_existing_recipe` looks like this
```javascript
['pyrebase']
```
it returns a list of packages that is not yet present on `python-for-android`