Skip to main content

Add a short description here!

Project description

Solve Mumuki exercises using your favorite code editor

Description

This package allows you to load, solve and submit assignments in two different ways:

  • Using an standard editor - like vim or Visual Studio Code - and the standard Python interpreter

  • Using Colab

Standard Editor Usage

Environment setup

You will need to use python and pip in order to solve exercises. Please ensure you have those commands locally installed in your computer. Then install mumuki-xce:

pip install mumuki-xce --quiet

Now you are ready to solve exercises!

Solving an exercise

Just create a new python file with py extension, and paste the following code in it:

from mumuki import Mumuki
mumuki = Mumuki("#...token...#", "#...locale...#")
mumuki.visit("#...organization...#", "#...exercise_id...#")

# ...place your solution here...

mumuki.test()

If you want to submit your solution, just run on your terminal

python your_file.py

If you just want to load it into a node interpreter and test and play with your code, run:

python -i your_file.py

Colab Usage

Environment setup

In order to solve exercises you will need to visit and log in to [Colab](https://colab.research.google.com/).

Solving an exercise

First create a cell with the following code:

!pip install mumuki-xce --quiet

from mumuki import IMumuki
mumuki = IMumuki("#...token...#", "#...locale...#")
mumuki.visit("#...organization...#", "#...exercise_id...#")

Then create another cell, whose first line must be %%solution. Then write your solution above it:

%%solution

# ...your solution goes here

Now please edit and run your cells as needed. Feel free also to create aditional cells. When you are ready, add another cell will the following code:

mumuki.test()

If you modify your code, don’t forget to run your cells again.

Development

In order to build this project, clone it and then run:

`bash # load venv $ source .venv/bin/activate # configure project and run pytest $ tox `

If you want to test the latest version of this project in your Colab or Jupyter environment, install xce within a cell like this:

` !pip install git+https://github.com/mumuki/mumuki-xce-py.git@master `

In order to deploy the latest version, tag this project and then:

`bash $ tox -e build $ tox -e publish $ tox -e publish -- --repository pypi `

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

mumuki_xce-0.3.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

mumuki_xce-0.3-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mumuki_xce-0.3.tar.gz.

File metadata

  • Download URL: mumuki_xce-0.3.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for mumuki_xce-0.3.tar.gz
Algorithm Hash digest
SHA256 4d1986baa4216d8d15a0ad4a2a6b53dd61b3eecf62a27aa0d778bac5fd086531
MD5 27a2ca70cb665a309200076805c1ad96
BLAKE2b-256 fa299b0136ff54b0cbf9499fff3d0b19fc4577a6984b787d16de339d6737d50b

See more details on using hashes here.

File details

Details for the file mumuki_xce-0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: mumuki_xce-0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for mumuki_xce-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58bdcf147f172bf7a493766b9089bc56be688f72eaf330660efced0ebafdfb02
MD5 22cd0f216ae9dd5f2f5b606213ceb40a
BLAKE2b-256 e88c8484d168c54548498401941e351cd5a929585be9163fb99e2a3d28b212e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page