Skip to content

Commit

Permalink
Make doc structure consistent and up-to-date
Browse files Browse the repository at this point in the history
This is part of an effort to make the Kivy sibling projects' documentation
structure consistent and up-to-date.

Unrelated changes:
* Readme Copy-edit. Reformat markdown table
* RST added structure, including API page
* Congrats, promoted from "beta" to "stable" in setup classifiers

CHECKLIST

* CONTRIBUTING.md
   [x] If repo takes user contributions, is present
   [x] In root dir (not .github dir)
   [x] Refers to kivy/kivy Contribution Guidelines.

* LICENSE
   [x] If repo takes user contributions, is present.
   [x] Acknowledges the range of years to 2023.
   [x] Acknowledges Kivy Team and other contributors
   [x] Mentions it is an MIT License.

* CODE_OF_CONDUCT.md
   [x] If repo takes user contributions or hosts discussions, is present.
   [x] Refers to kivy/kivy CODE_OF_CONDUCT.md

* CONTACT.md
   [x] Refers to kivy/kivy CONTACT.md

* FAQ.md
   [NA] If repo is big enough for RST documentation, is present.
   (RST documentation exists but is trivial)

* README:
   [x] Is a Markdown file.
   [x] Describes the project.
   [x] Describes its place in the Kivy sibling projects.
   [x] If CONTRIBUTING exists, mentions it.
   [x] If LICENSE exists, mentions it.
   [x] If CODE_OF_CONDUCT exists, mentions it.
   [x] Mentions kivy/kivy CONTACT.md
   [NA] Uses Python syntax colouring for embedded Python code.
   [x] Uses badges to display current status.

* RST documentation, if present
   [x] Describes the project.
   [x] Describes its place in the Kivy sibling projects.
   [x] Mentions LICENSE.
   [x] Mentions CONTRIBUTING
   [NA] Mentions FAQ
   [x] conf.py mentioned Kivy Team and other contributors
		- copyright, latex_documents, man_pages, texinfo documents

* WORKFLOWS
   [x] NO_RESPONSE.yml is present if the repo has awaiting_reply tag.
   [x] NO_RESPONSE uses latest script versions.
   [x] SUPPORT.yml is present if the repo has a `support` tag.
   [x] SUPPORT.yml refers to kivy/kivy CONTACT.md

* setup.py/cfg, if present and on PyPI
   [x] Supplies description to PyPI
   [x] Supplies Python versions to PyPI
   [x] Supplies Documentation, if any, to PyPI
  • Loading branch information
Julian-O committed Nov 26, 2023
1 parent 8c0e11f commit 9233225
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 115 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/support.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Support Requests'

on:
issues:
types: [labeled, unlabeled, reopened]

permissions:
issues: write

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/support-requests@v4
with:
github-token: ${{ github.token }}
support-label: 'support'
issue-comment: >
👋 We use the issue tracker exclusively for bug reports and feature requests.
However, this issue appears to be a support request. Please use our
[support channels](https://github.com/kivy/kivy/blob/master/CONTACT.md)
to get help with the project.
Let us know if this comment was made in error, and we'll be happy
to reopen the issue.
close-issue: true
lock-issue: false
8 changes: 8 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
In the interest of fostering an open and welcoming community, we as
contributors and maintainers need to ensure participation in our project and
our sister projects is a harassment-free and positive experience for everyone.
It is vital that all interaction is conducted in a manner conveying respect,
open-mindedness and gratitude.

Please consult the [latest Kivy Code of Conduct](https://github.com/kivy/kivy/blob/master/CODE_OF_CONDUCT.md).

8 changes: 8 additions & 0 deletions CONTACT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contacting the Kivy Team

Are you having trouble using the Kivy framework, or any of its related projects?
Is there an error you don’t understand? Are you trying to figure out how to use
it? We have volunteers who can help!

The best channels to contact us for support are listed in the latest
[Contact Us](https://github.com/kivy/kivy/blob/master/CONTACT.md) document.
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contribution Guidelines

Kivy is a large product used by many thousands of developers for free, but it
is built entirely by the contributions of volunteers. We welcome (and rely on)
users who want to give back to the community by contributing to the project.

Contributions can come in many forms. See the latest
[Kivy Contribution Guidelines](https://github.com/kivy/kivy/blob/master/CONTRIBUTING.md)
for how you can help us.


4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) 2010-2017 Kivy Team and other contributors
MIT License

Copyright (c) 2010-2023 Kivy Team and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
181 changes: 80 additions & 101 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,134 +1,113 @@
# Plyer

Plyer is a platform-independent api to use features commonly found on various
platforms, notably mobile ones, in Python.
Plyer is a platform-independent Python API for accessing features
of various hardware platforms, especially Android and iOS devices.

Plyer is managed by the [Kivy Team](https://kivy.org/about.html) and is suitable for
use with Kivy apps.

[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](https://opencollective.com/kivy)
[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](https://opencollective.com/kivy)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)

![PyPI - Version](https://img.shields.io/pypi/v/plyer)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plyer)


[![coverage](https://coveralls.io/repos/kivy/plyer/badge.svg?branch=master)](https://coveralls.io/r/kivy/plyer?branch=master)
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](#sponsors)
![Continuous Integration with Ubuntu](https://github.com/kivy/plyer/workflows/Continuous%20Integration%20with%20Ubuntu/badge.svg)
![Continuous Integration with Ubuntu](https://github.com/kivy/plyer/workflows/Continuous%20Integration%20with%20Ubuntu/badge.svg)
![Continuous Integration with OSX](https://github.com/kivy/plyer/workflows/Continuous%20Integration%20with%20OSX/badge.svg)
![Continuous Integration with Windows](https://github.com/kivy/plyer/workflows/Continuous%20Integration%20with%20Windows/badge.svg)
![Deploy to PyPI](https://github.com/kivy/plyer/workflows/Deploy%20to%20PyPI/badge.svg)


## How plyer works?

Plyer tries not to reinvent the wheel, and will call for external libraries to
implement the api in the easiest way, depending on the current platform.
Plyer tries not to reinvent the wheel, and will call external libraries to
implement the API in the easiest way, depending on the current platform.

- On Android(python-for-android), pyjnius is used
- On iOS(kivy-ios), pyobjus is used
- On windows/mac/linux, commonly found libraries and programs will be used
- On Android ([python-for-android](https://python-for-android.readthedocs.io/)), [PyJNIus](https://pypi.org/project/pyjnius/) is used.
- On iOS ([kivy-ios](https://pypi.org/project/kivy-ios/)), [pyobjus](https://pypi.org/project/pyobjus/) is used.
- On Windows, macOS and Linux, commonly found libraries and programs will be
used.


## Supported APIs

| Platform | Android | iOS | Windows | OS X | Linux |
| ------------------------------ | ------- | --- | ------- | ---- | ----- |
| Accelerometer || | || |
| Audio recording || | || |
| Barometer || | | | |
| Battery || | || |
| Bluetooth || | || |
| Brightness || | | | |
| Call || | | | |
| Camera (taking picture) || | | | |
| Compass || | | | |
| CPU count | | | || |
| Devicename || | || |
| Email (open mail client) || | || |
| Flash || | | | |
| GPS || | | | |
| Gravity || | | | |
| Gyroscope || | | | |
| Humidity || | | | |
| IR Blaster || | | | |
| Keystore || | || |
| Light || | | | |
| Maps | | | || |
| Native file chooser || | || |
| Notifications || | || |
| Orientation || | | | |
| Proximity || | | | |
| Screenshot | | | || |
| SMS (send messages) || | || |
| Spatial Orientation || | | | |
| Speech to text || | | | |
| Storage Path || | || |
| Temperature || | | | |
| Text to speech || | || |
| Unique ID || | || |
| Vibrator || | | | |
| Wifi | | | || |
| Platform | Android | iOS | Windows | macOS | Linux |
| ------------------------------ |:-------:|:---:|:-------:|:-----:|:-----:|
| Accelerometer || | | | |
| Audio recording || | | | |
| Barometer || | | | |
| Battery || | | | |
| Bluetooth || | | | |
| Brightness || | | | |
| Call || | | | |
| Camera (taking picture) || | | | |
| Compass || | | | |
| CPU count | | | | | |
| Devicename || | | | |
| Email (open mail client) || | | | |
| Flash || | | | |
| GPS || | | | |
| Gravity || | | | |
| Gyroscope || | | | |
| Humidity || | | | |
| IR Blaster || | | | |
| Keystore || | | | |
| Light || | | | |
| Maps | | | | | |
| Native file chooser || | | | |
| Notifications || | | | |
| Orientation || | | | |
| Proximity || | | | |
| Screenshot | | | | | |
| SMS (send messages) || | | | |
| Spatial Orientation || | | | |
| Speech to text || | | | |
| Storage Path || | | | |
| Temperature || | | | |
| Text to speech || | | | |
| Unique ID || | | | |
| Vibrator || | | | |
| Wifi | | | | | |


## Installation

To use on desktop: `pip install plyer`
To use in python-for-android/kivy-ios: add `plyer` to your requirements if needed.

## Support

If you need assistance, you can ask for help on our mailing list:

* User Group : https://groups.google.com/group/kivy-users
* Email : [email protected]

Discord channel:

* Server : https://chat.kivy.org
* Channel : #dev


## Contributing

We love pull requests and discussing novel ideas. Check out our
[contribution guide](http://kivy.org/docs/contribute.html) and
feel free to improve Plyer.

The following mailing list and IRC channel are used exclusively for
discussions about developing the Kivy framework and its sister projects:

* Dev Group : https://groups.google.com/group/kivy-dev
* Email : [email protected]

IRC channel:

* Server : irc.freenode.net
* Port : 6667, 6697 (SSL only)
* Channel : #kivy-dev


## License

Plyer is released under the terms of the MIT License. Please refer to the
LICENSE file.

## Contributors
Kivy for iOS is [MIT licensed](LICENSE), actively developed by a great
community and is supported by many projects managed by the
[Kivy Organization](https://www.kivy.org/about.html).

This project exists thanks to all the people who contribute. [[Contribute](http://kivy.org/docs/contribute.html)].
## Support

<a href="https://github.com/kivy/plyer/graphs/contributors"><img src="https://contrib.rocks/image?repo=kivy/plyer"/></a>
Are you having trouble using the Kivy framework, or any of its related projects?
Is there an error you don’t understand? Are you trying to figure out how to use
it? We have volunteers who can help!

## Backers
The best channels to contact us for support are listed in the latest
[Contact Us](https://github.com/kivy/kivy/blob/master/CONTACT.md) document.

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/kivy#backer)]
## Contributing

<a href="https://opencollective.com/kivy#backers" target="_blank"><img src="https://opencollective.com/kivy/backers.svg?width=890"></a>
Kivy is a large product used by many thousands of developers for free, but it
is built entirely by the contributions of volunteers. We welcome (and rely on)
users who want to give back to the community by contributing to the project.

Contributions can come in many forms. See the latest
[Kivy Contribution Guidelines](https://github.com/kivy/kivy/blob/master/CONTRIBUTING.md)
for how you can help us.

## Sponsors
## Code of Conduct

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/kivy#sponsor)]
In the interest of fostering an open and welcoming community, we as
contributors and maintainers need to ensure participation in our project and
our sister projects is a harassment-free and positive experience for everyone.
It is vital that all interaction is conducted in a manner conveying respect,
open-mindedness and gratitude.

<a href="https://opencollective.com/kivy/sponsor/0/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/1/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/2/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/3/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/4/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/5/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/6/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/7/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/8/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/kivy/sponsor/9/website" target="_blank"><img src="https://opencollective.com/kivy/sponsor/9/avatar.svg"></a>
Please consult the [latest Kivy Code of Conduct](https://github.com/kivy/kivy/blob/master/CODE_OF_CONDUCT.md).
11 changes: 11 additions & 0 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. _api:

API
===

.. automodule:: plyer
:members:

.. automodule:: plyer.facades
:members:
10 changes: 5 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# General information about the project.
project = u'Plyer'
copyright = u'2013, Mathieu Virbel, Akshay Aurora, Gabriel Petier, Ben Rousch'
copyright = u'2013-2023, Kivy Team and other contributors'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -189,7 +189,7 @@
# (source start file, target name, title, author, documentclass [howto/manual])
latex_documents = [(
'index', 'Plyer.tex', u'Plyer Documentation',
u'Mathieu Virbel, Akshay Aurora, Gabriel Petier, Ben Rousch', 'manual'
u'Kivy Team and other contributors', 'manual'
), ]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -219,7 +219,7 @@
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'plyer', u'Plyer Documentation',
[u'Mathieu Virbel, Akshay Aurora, Gabriel Petier, Ben Rousch'], 1)
[u'Kivy Team and other contributors'], 1)
]

# If true, show URL addresses after external links.
Expand All @@ -233,8 +233,8 @@
# dir menu entry, description, category)
texinfo_documents = [(
'index', 'Plyer', u'Plyer Documentation',
u'Mathieu Virbel, Akshay Aurora, Gabriel Petier, Ben Rousch',
'Plyer', 'One line description of project.', 'Miscellaneous'
u'Kivy Team and other contributors',
'Plyer', 'Plyer is a platform-independent Python API for accessing features of various hardware platforms, especially Android and iOS devices.', 'Miscellaneous'
), ]

# Documents to append as an appendix to all manuals.
Expand Down
7 changes: 7 additions & 0 deletions docs/source/contact.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _contact:

Contact Us
==========

If you are looking to contact us, including looking for support, please see our
`latest contact details <https://github.com/kivy/kivy/blob/master/CONTACT.md>`_.
11 changes: 11 additions & 0 deletions docs/source/contribute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _contribute:

Contribution Guidelines
=======================

Kivy is a large product used by many thousands of developers for free, but it
is built entirely by the contributions of volunteers. We welcome (and rely on)
users who want to give back to the community by contributing to the project.

Contributions can come in many forms. To learn more, see our
`latest Contribution Guidelines <https://github.com/kivy/kivy/blob/master/CONTRIBUTING.md>`_.
19 changes: 14 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
Welcome to Plyer
================

Plyer is a Python library for accessing features of your hardware / platforms.
Plyer is a platform-independent Python API for accessing features
of various hardware platforms, especially Android and iOS devices.

.. automodule:: plyer
:members:
Plyer is managed by the `Kivy Team <https://kivy.org/about.html>`
and is suitable for use with Kivy apps.

.. automodule:: plyer.facades
:members:
Plyer is released and distributed under the terms of the MIT license. Our
`latest license <https://github.com/kivy/kivy/blob/master/LICENSE>`_
is available.

.. toctree::
:maxdepth: 2

api
contact
contribute

Indices and tables
==================
Expand Down
Loading

0 comments on commit 9233225

Please sign in to comment.