Skip to content

Commit

Permalink
Changed to simplified example
Browse files Browse the repository at this point in the history
  • Loading branch information
cognitivegears committed Mar 15, 2021
1 parent 20aab7a commit eec43d4
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,22 @@ To install in a virtual environment in your current project:
Usage Example
=============

.. literalinclude:: ../examples/uschedule_simpletest.py
:caption: examples/uschedule_simpletest.py
:linenos:
.. code-block:: python
import time
import uschedule as schedule
def greet():
print("Hello, world!")
schedule.every(10).seconds.do(greet)
while True:
schedule.run_pending()
time.sleep(1)
python3 -m venv .env
Contributing
============
Expand Down

0 comments on commit eec43d4

Please sign in to comment.