https://github.com/edu-data-mario/classroom-notice-board rest clinet
Project description
classroom-notice-board-rest-clinet
USE
$ pip install classroom-notice-board-rest-clinet
$ python
Python 3.7.13 (default, Jul 13 2022, 10:21:28)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from classroom_notice_board_rest_clinet.restclient import update_poster
>>> update_poster(message="Stay hungry, stay foolish")
204
>>>
$ class-rest-client -h
usage: class-rest-client [-h] [-p | -t] msg [base_url]
positional arguments:
msg message
base_url dashboard base_url, default:https://classmario.fly.dev
optional arguments:
-h, --help show this help message and exit
-p, --poster updates the contents of the POSTER widget
-t, --team updates the contents of the TEAM widget
$ class-rest-client -p "Stay hungry, stay foolish"
SUCCESS UPDATE POSTER
Settings for Development
init
$ pdm init
Creating a pyproject.toml for PDM...
Please enter the Python interpreter to use
0. /Users/m2/.pyenv/shims/python3 (3.7)
1. /Users/m2/.pyenv/shims/python (3.7)
2. /Users/m2/.pyenv/shims/python3.11 (3.11)
3. /opt/homebrew/bin/python3.11 (3.11)
4. /Users/m2/.pyenv/versions/3.11.0/bin/python3.11 (3.11)
5. /Users/m2/.pyenv/shims/python3.10 (3.10)
6. /opt/homebrew/bin/python3.10 (3.10)
Please select (0):
Would you like to create a virtualenv with /Users/m2/.pyenv/versions/3.7.13/bin/python3? [y/n] (y):
Virtualenv is created successfully at /Users/m2/code/edu/classroom-notice-board-rest-clinet/.venv
Is the project a library that is installable?
If yes, we will need to ask a few more questions to include the project name and build backend [y/n] (n): y
Project name (classroom-notice-board-rest-clinet):
Project version (0.1.0):
Project description (): https://github.com/edu-data-mario/classroom-notice-board rest clinet
Which build backend to use?
0. pdm-backend
1. setuptools
2. flit-core
3. hatchling
4. pdm-pep517
Please select (0):
License(SPDX name) (MIT):
Author name (dmario24):
Author email (becky2sawyer@gmail.com): data.mario24@gmail.com
Python requires('*' to allow any) (>=3.7):
Project is initialized successfully
$ ls -al
total 32
drwxr-xr-x 10 m2 staff 320 8 28 10:03 .
drwxr-xr-x 5 m2 staff 160 8 28 10:01 ..
-rw-r--r-- 1 m2 staff 3102 8 22 11:26 .gitignore
-rw-r--r-- 1 m2 staff 70 8 28 10:01 .pdm-python
drwxr-xr-x 6 m2 staff 192 8 28 10:01 .venv
-rw-r--r-- 1 m2 staff 37 8 28 10:03 README.md
drwxr-xr-x 3 m2 staff 96 8 28 10:03 __pycache__
-rw-r--r-- 1 m2 staff 393 8 28 10:03 pyproject.toml
drwxr-xr-x 3 m2 staff 96 8 28 10:03 src
drwxr-xr-x 4 m2 staff 128 8 28 10:03 tests
$ source .venv/bin/activate
(classroom-notice-board-rest-clinet-3.7) $
init test
$ pdm add --dev pytest
$ pytest
$ pytest -s
ref
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for classroom_notice_board_rest_clinet-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb02b153910923d2a16899503c67b6f01dca0e0cdb5557c962911ff73ca23f3f |
|
MD5 | 0e11069bac358c31f3cac0f8d00763e8 |
|
BLAKE2b-256 | 8daee8ec24080c741348c54033c6cc27854af9641da3f900cc224ce8c544e004 |
Close
Hashes for classroom_notice_board_rest_clinet-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a307fa4ba958aebf9602ec41379f13e95d5cd6eb3f1981140bd357dda2ebe018 |
|
MD5 | 357c6cf908c580647202a3f4ad68a298 |
|
BLAKE2b-256 | c452ecfa06749dba66253eb57b5a89e5e638545dd04660e3ecd8f34360c63ea2 |