Skip to main content

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).


Example

Just import the package at the top of your script (example):

# 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:

$ python3 my_script.py

┌──────────────────────────────────┐
│ Achievement Unlocked: Loops!     │
│ Achievement Unlocked: Functions! │
└──────────────────────────────────┘

value:  6

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

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)
  2. Some achievements have dependencies, and will only be unlocked once previous ones have been unlocked
  3. Unlocked achievements will remain unlocked, so those "Achievement Unlocked" messages will should only show once per achievement

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)
  2. More details on how to contribute (along with code docs to help with the development process) are coming soon

Release files for dev-achievements 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dev-achievements 1.0.3
File Size Uploaded
dev_achievements-1.0.3.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dev-achievements 1.0.3
File Interpreter ABI Platform
dev_achievements-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.2 kB

Release files / dev_achievements-1.0.3.tar.gz

Download URL dev_achievements-1.0.3.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a55c2a55149d154750d49479885311011c06dd2ce2daea04d449b67f92ae792f
BLAKE2b-256 checksum
How to use checksums
b0aba987d79613d59c0b8ccc405161671351fab8f30110988208d265126539b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release files / dev_achievements-1.0.3-py3-none-any.whl

Download URL dev_achievements-1.0.3-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adf98ef6ce73a4fab4e202ecd25e174592a93fa565a24b3db8165be1b8f36309
BLAKE2b-256 checksum
How to use checksums
abe2757a256682f0b95cc55a002599dfaca25bb7ca2c37e6688537268f03cc10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page