This repo contains all my articles that I publish in Markdown and also all the source code examples related to those articles. You can currently find them on.
- Icon From https://www.flaticon.com
This repo contains all the code examples for my articles
Home Page: https://haseebmajid.dev/blog/
License: MIT License
This repo contains all my articles that I publish in Markdown and also all the source code examples related to those articles. You can currently find them on.
when following the readme the app won't work.
the location to run flask from is incorrect. (should be from "medium\13. REST API using OpenAPI, Flask & Connexions\source_code\test-api\src\test_api")
there is a compile issue due to incorrect file names ( /web/controllers/pet_controller.py should be /web/controllers/pets_controllers.py)
there is an import issue inside pets_controllers.py
as this is a guide to learn the stack please can you supply a working example?
On running pytest
command from the project root directory, there is an error:
(Also mentioned in the blog post):
E fixture 'client' not found
> available fixtures: app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
Cloned the articles repository and followed the instructions to run docker with SQLAlchemy.
After doing flask run
, I'm seeing the below error:
--sniped trace:
File "/Users/testing/Desktop/Python/projects/source_code/src/example/__init__.py", line 4, in <module>
from . import config
File "/Users/testing/Desktop/Python/projects/source_code/src/example/config.py", line 3, in <module>
user = os.environ['POSTGRES_USER']
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'POSTGRES_USER'
typo in line 13 of medium/6. Pyest with Background Threads/source_code/test_example.py
with example_server as tcp_server:
# should be:
with tcp_server as example_server:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.