Skip to content

Sparsh-katiyar/hypermedia.systems

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hypermedia.systems

Type Checker Tests

Examples from the book Hypermedia Systems.

The code here is slightly different from the book, as I try to use types where I can, and check for them using Mypy, a static type checker for Python.

PyTest is used for testing. While inside an example directory simply run pytest to run the tests for that example.

Running an Example

Clone the repo...

git clone https://github.com/juliojimenez/hypermedia.systems

Go to an example...

cd chapter-3/1-simple-hello-world/

And run it...

pip3 install -r requirements.txt
python3 app.py

Each example runs on a different port. Run multiple examples simultaneously and compare them in the browser!

Examples

Chapter 3

Chapter 4

Chapter 5

Chapter 6

Support

Python 3.11+

Dependencies

  • HTMX v1.9.5
  • missing.css v1.0.10
    • Not sure what's going on with the package hosting for this, but I had to grab the artifact from the latest tag in the repo.
    • It was working fine when I started this repository. If it starts working again, please submit an issue or hit me up on X.

About

Examples from the book Hypermedia Systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.4%
  • HTML 33.0%
  • CSS 8.6%