dev-achievements-1.0.3
توضیحات
Earn Achievements while learning how to code
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dev-achievements-1.0.3 |
| نام | dev-achievements |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ravi Patel |
| ایمیل نویسنده | ravi.patel1245@gmail.com |
| آدرس صفحه اصلی | https://github.com/raviolliii/dev-achievements |
| آدرس اینترنتی | https://pypi.org/project/dev-achievements/ |
| مجوز | - |
# dev-achievements
Earn Achievements while learning how to code
Game-ify your experience while learning to code and get achievements for different concepts as you use them. Start off at a simple `print` statement and work your way up to `functions` and `classes` (and more to come).
<br/>
### Example
Just `import` the package at the top of your script (example):
```python
# my_script.py
import dev_achievements
def cumulative_sum(x):
# calculates sum of numbers from 0 to x
total = 0
for i in range(x):
total += i
return total
result = cumulative_sum(4)
print('value: ', result)
```
And run it in terminal as you normally would:
```shell
$ python3 my_script.py
┌──────────────────────────────────┐
│ Achievement Unlocked: Loops! │
│ Achievement Unlocked: Functions! │
└──────────────────────────────────┘
value: 6
```
<br/>
### Usage
1. Install the package with `pip install dev-achievements`
2. Use `import dev_achievements` at the top of your script
3. Run your `python` script as normal
<br/>
### Some things to note
1. Currently this _only_ works on single file scripts - if you import your own module (e.g. for utility functions) that module will _not_ be parsed (planning on fixing this though)
1. Some achievements have _dependencies_, and will only be unlocked once previous ones have been unlocked
1. Unlocked achievements will remain unlocked, so those "Achievement Unlocked" messages will should only show once per achievement
<br/>
### Future plans and contributing
1. The bare bones achievements are currently implemented (using `"hello world"`, `for` loops, `lists`, `functions`, etc.) - more achievements are in development (see issue [#1](https://github.com/raviolliii/dev-achievements/issues/1))
1. More details on how to contribute (along with code docs to help with the development process) are coming soon
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl dev-achievements-1.0.3:
pip install dev-achievements-1.0.3.whl
نصب پکیج tar.gz dev-achievements-1.0.3:
pip install dev-achievements-1.0.3.tar.gz