Giter VIP home page Giter VIP logo

silversaucer's Introduction

Project Type: Toy made-with-python Code style: black SilverSaucer

Overview

Project Status: Completed

Silver Saucer is a domain I registered many years ago and kept because I like the name. Both the name and the logo are inspired from both a poem by Neil Gaiman, The Day the Saucers Came and my love of The X-Files.

Silver Saucer's main goal is was a Python learning exercise to integrate my record collection, using the Discogs API, with a website to display album art when an album is chosen or randomly picked.

You can visit Silversaucer.com to see the site in action.

Project Goals

The project had three main goals:

  • Complete: Build a website that integrates with the Discogs API to display information about an album, either chosen at random or picked specifically.
  • Integrate with an Adafruit PyPortal and using CircuitPython, display the album art on the PyPortal.
  • Build an "On this Day" feature to display albums released on a specific day. This required a number of steps to integrate the MusicBrainz into the app.

Want to know more? You can view my blog posts about Silver Saucer and my progress here.

Development Goals

  • Switch from the Pyramid web framework to the FastAPI framework.
  • Still need to learn testing and 'pytest'. Just can't wrap my head around it.
  • Migrate to Github Actions from Azure Pipelines.
  • Learn the Discogs API (and potentially MusicBrainz).
  • Learn how to use the CircuitPython MatrixPortal. (This is more complex than it sounds!)

silversaucer's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar prcutler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mvandermeulen

silversaucer's Issues

FastAPI fails to start due to templates / views not found

If I leave @template() in home.py empty, I get this error:

 silversaucer> python main.py 
Traceback (most recent call last):
  File "/Users/prcutler/workspace/silversaucer/main.py", line 5, in <module>
    from views import home, play, today
  File "/Users/prcutler/workspace/silversaucer/views/home.py", line 9, in <module>
    def index():
  File "/Users/prcutler/workspace/silversaucer/testvenv/lib/python3.9/site-packages/fastapi_chameleon/engine.py", line 71, in response_inner
    if not os.path.exists(os.path.join(template_path, template_file)):
  File "/usr/local/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py", line 76, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

If I add the relative path in home.py to template() like:
@template(home/index.pt)

I get the error when trying to start the app:

 silversaucer> python main.py
Traceback (most recent call last):
  File "/Users/prcutler/workspace/silversaucer/main.py", line 5, in <module>
    from views import home, play, today
  File "/Users/prcutler/workspace/silversaucer/views/home.py", line 8, in <module>
    @template(home/index.pt)
NameError: name 'home' is not defined

Main.py Seems to match the training course but the router isn't finding it?

Dependabot couldn't fetch all your path-based dependencies

Dependabot couldn't fetch one or more of your project's path-based Python dependencies. The affected dependencies were [email protected]:prcutler/silversaucer.git@86bc0142edb5d0630ad884580ab22e853e3c372b/setup.py.

To use path-based dependencies with Dependabot the paths must be relative and resolve to a directory in this project's source code.

You can mention @dependabot in the comments below to contact the Dependabot team.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.