Skip to content

moto-timo/guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

guessing-game

This is the guessing-game example code from the maturin tutorial.

Quick start

Clone the source:

git clone https://github.com/moto-timo/guessing-game
cd guessing-game

Set up a Python virtual environment:

python3 -m venv .venv
source .venv/bin/activate

Build and install in your virtual environment:

maturin develop

Test the module:

python3
>>> import guessing_game
>>> guessing_game.guess_the_number()

To build a wheel:

maturin build

To leave your virtual envirnoment:

deactivate

About

Wrap a version of the guessing game from The Rust Book to run in Python using pyo3.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages