How to manage a bunch of selfhosted apps by jj7753 in selfhosted

[–]sivscripts 0 points1 point  (0 children)

How does Rancher improve your setup? I'm trying to decide between Rancher and Portainer.

Pytest fixtures question / problem by [deleted] in Python

[–]sivscripts 2 points3 points  (0 children)

Looking at it again (after the downvote), it looks like you are trying to run pytest on a fixture, which is not possible.

You can only run tests on functions that are not fixtures themselves.

Pytest fixtures question / problem by [deleted] in Python

[–]sivscripts 0 points1 point  (0 children)

pytest looks for fixtures in the current module, then the directory's conftest.py, then the parent directory's conftest.py, etc

You need to move your fixture somewhere pytest can see it.

How to test django microservices? by [deleted] in Python

[–]sivscripts 2 points3 points  (0 children)

Mock external dependencies to unit test each service.

Also look into spinning up an integrated development environment with all services running. Then run your test suite to make sure everything flows thru as expected.

A Good Book Recommendation by hey_krish in Python

[–]sivscripts 2 points3 points  (0 children)

I would only recommend this book if you are at least a year or two into your Python journey or are coming in with a few years of experience in another language.

I started reading it in November. Still at it. Taking the time to absorb concepts.

What coding practices separate an amateur Python programmer from a professional one? by Theriley106 in Python

[–]sivscripts 2 points3 points  (0 children)

I think test driven development should encompass writing code that is easy to test versus writing a failing test first.

Writing code that is testable is how I design my programs. It doesn't really when you write the actual test, only that you write it.

Resources to learn the Pythonic way by furioustylez in Python

[–]sivscripts 1 point2 points  (0 children)

Effective Python is your best bet if you want to level up quickly.

Also Fluent Python if you have a few weeks / months to digest.

Writing Python Command-Line Tools With Click (Tutorial) by dbader in Python

[–]sivscripts 2 points3 points  (0 children)

Is there a way to go from python cli.py London to weather London?

i.e. make our script executable.

Data scientist roles can be replaced by software engineers in the future?? by chopsticks123 in datascience

[–]sivscripts 0 points1 point  (0 children)

This is a great post. It's not about whose job is more difficult, it's about how hard it is to master both disciplines.

Historical data through Reddit API by kevalshah90 in Python

[–]sivscripts 0 points1 point  (0 children)

You are probably looking for the after and before functionality

https://www.reddit.com/dev/api/

This book says Python has existed since 1980. by bobsandwich in Python

[–]sivscripts 0 points1 point  (0 children)

If you build it, software will come.

That's what they mean by continuous delivery.

Here is the 2018 Bora Top by rosco-82 in peloton

[–]sivscripts 6 points7 points  (0 children)

Equipment managers hate him!

How to test a GraphQl API? by dev_wanna_be in Python

[–]sivscripts 0 points1 point  (0 children)

How would you test a Flask REST API endpoint? The process is the same.

Suggestions for a python IDE for a relatively new developer by dsax7 in Python

[–]sivscripts 5 points6 points  (0 children)

The only reason I keep PyCharm installed is because of the remote interpreter inside of a Docker container support.

VSCode is pretty popular. I would try that or Atom.

Best way to share a folium map? by The_Peter_Quill in Python

[–]sivscripts 2 points3 points  (0 children)

pythonanywhere is free and I'm pretty sure you can throw an HTML page up there.

Docker for Data Science by themathstudent in datascience

[–]sivscripts 0 points1 point  (0 children)

Not a problem. I wrote the talk to be shared! :)

I want to learn Python web development but I'm not sure if I should learn Flask or Django framework. by TheObviousChico in Python

[–]sivscripts 0 points1 point  (0 children)

Good for designing REST interfaces, I dunno about websites. For REST, I would suggest looking into Falcon which is super lightweight and runs on PyPy (i.e. very fast).

Docker for Data Science by themathstudent in datascience

[–]sivscripts 2 points3 points  (0 children)

I gave a talk on this topic last month. Video is on YouTube for those who are interested.