[TriLUG] Python help?

Brian McCullough via TriLUG trilug at trilug.org
Tue Oct 8 16:03:46 EDT 2024


On Tue, Oct 08, 2024 at 03:51:37PM -0400, Will Richey wrote:
> On 10/8/24 3:39 PM, Brian McCullough wrote:
> 
> > I am looking for a lightweight way of creating REST API endpoints
> > reading data and derived query results from a database.
> > https://github.com/encode/starlette-example
> 
> Ah... that starlette-example/scripts/run is what has put you off in the
> weeds.
> 
> If you want to continue along with that example, I think you have two
> choices:
> 
> 1. add psycopg to starlette-example/requirements.txt, do your hacking
>    and continue to follow the instructions at link above
> 2. stop using the starlette-example/scripts and follow other
>    suggestions posted on this list


Thank you Will.


In a way, I have been playing with both options.  I did add psycopg to
the requirements.txt file, but I have also been playing with some
hand-written code.


Brian



More information about the TriLUG mailing list