- 501
- 1 025 137
Python 360
United Kingdom
เข้าร่วมเมื่อ 25 มิ.ย. 2019
Regular Python videos, support my channel via Patreon:
www.patreon.com/join/3552586
► Automation - creation of documents (CSV, DOCX, PDF)
► EBAY API with Python
► Bitcoin
► ML and AI including chatGPT, LangChain and HuggingFace
► Google Cloud Platform Tutorials
► API integration + FastAPI
► Network Automation
► Web Scraping (Requests, Scrapy, BeautifulSoup)
www.patreon.com/join/3552586
► Automation - creation of documents (CSV, DOCX, PDF)
► EBAY API with Python
► Bitcoin
► ML and AI including chatGPT, LangChain and HuggingFace
► Google Cloud Platform Tutorials
► API integration + FastAPI
► Network Automation
► Web Scraping (Requests, Scrapy, BeautifulSoup)
Python Jobs - UK - June 2024
UK Python Developoer Jobs - Checking out job vacancies related to "Python" ~ June 2024 (UK)
If you want a fast VPS server with Python installed check out :
webdock.io/en?maff=wdaff--170
Thumbs up yeah? (cos Algos..)
#uk #python #pythonjobs
If you want a fast VPS server with Python installed check out :
webdock.io/en?maff=wdaff--170
Thumbs up yeah? (cos Algos..)
#uk #python #pythonjobs
มุมมอง: 30
วีดีโอ
My Programming Books - Top Books - Python, Rust, JavaScript, C
มุมมอง 146หลายเดือนก่อน
Check out my thoughts and observations about my programming books that I've carefully chosen over the past few years. I buy one or 2 a year, so it's a big deal when I do buy one! Learn Python the Hard Way - Zed Shaw Python Crash Course - Eric Matthes Rust Crash Course - Abhishek Kumar and a few more! #pythonprogramming #programming #bestbooks
Using Pointers | C Programming
มุมมอง 115หลายเดือนก่อน
A look at C programming - and pointers! Always good to have awareness of C no matter what your preferred programming language is! Buy Dr Pi a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi #programming #tutorials #python
Troubleshoot Pytest VSCode "module not found" issues?
มุมมอง 73หลายเดือนก่อน
Some set up tips and troubleshoot suggestions if you get "app module not found" when using VScode and Python. P.s Hold down shift when you drag and drop a file to get its path into where you want it, eg between the quotes! github.com/RGGH/mok Become a patron : 🌏 www.patreon.com/drpi Buy me a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi If you want a fast VPS server with Python installed check ou...
Software Developer £££ Junior/Graduate Jobs | UK salaries 2024 | Can you afford to be one?
มุมมอง 135หลายเดือนก่อน
Software developer jobs can be lowly paid at the junior level. Let's look at the requirements, the skills and qualifications required and consider alternative solutions. UK ONS Data for all jobs : - Average weekly earnings (AWE) were estimated at £677 for total earnings - £633 for regular earnings in February 2024. ~ source : www.ons.gov.uk/ ''' On a £35,000 salary, your take home pay will be £...
Python Jobs | April 2024
มุมมอง 483หลายเดือนก่อน
Python Jobs | April 2024 (UK) - Jobs listed on Reed and Technojobs - a look at the skills required and the pay! Become a patron : 🌏 www.patreon.com/drpi Buy me a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi If you want a fast VPS server with Python installed check out : webdock.io/en?maff=wdaff 170 Pytest with FastAPI course on "TestDriven.io": testdriven.io/courses/tdd-fastapi/? testdriven.io/c...
Recursion in Python - how to sum the difference between 2 lists
มุมมอง 822 หลายเดือนก่อน
Learn a simple technique for doing recursion in Python. I show the iterative and recursive solution in Jupyter Notebook and debug the recursion example in VS code. Check out the code and debug it here on PythonTutor : 🔗 bitly.ws/3huXW If you want a fast VPS server with Python installed check out : 🔗 webdock.io/en?maff=wdaff 170 code : 🔗 github.com/RGGH/recursion/tree/main/noteboobs Thumbs up ye...
How to use Surrealdb with Python
มุมมอง 2192 หลายเดือนก่อน
Learn how to use SurrealDB with Python using Jupyter Notebook and the SurrealDB Python SDK. The video shows also graph edges tables and how to use 'Let' to simplify SELECT queries. surrealdb.com/ Article on reaandgreen.co.uk: 🟢 redandgreen.co.uk/surrealdb-tutorial/surrealdb/ If you want a fast VPS server with Python installed check out : 🟢 webdock.io/en?maff=wdaff 170 Thumbs up yeah? (cos Algos...
Lazy Iterators v List Comprehensions in Python
มุมมอง 2323 หลายเดือนก่อน
A lazy iterator in Python is often implemented using a generator expression, denoted by (...). A generator expression is similar to a list comprehension but produces values lazily, one at a time, as they are requested. 🌏 redandgreen.co.uk/lazy-iterators-in-python/python-code/ Become a patron : 🌏 www.patreon.com/drpi Buy me a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi If you want a fast VPS ser...
Stop blaming the language | RTFM and Chill out
มุมมอง 763 หลายเดือนก่อน
I'm seeing more articles mention/blame the language when discussing software related problems aka human error. Also, check out commoncrawl.org if you want a large raw dataset, plus set a low warning threshold and low limit on data usage with Cloud / OpenAI accounts. commoncrawl.org/ If you want a fast VPS server with Python installed check out : webdock.io/en?maff=wdaff 170 Thumbs up yeah? (cos...
Rye project and package management solution for Python
มุมมอง 3533 หลายเดือนก่อน
"Rye: a Hassle-Free Python Experience" - This video is a quick look at Rye, plus how to edit pyconfig.toml to use main.py 🟩 rye-up.com/guide/installation/ 🟩 redandgreen.co.uk/rye-for-python/python-code/ Become a patron : 🌏 www.patreon.com/drpi Buy me a coffee (or Tea) ☕ www.buymeacoffee.com/DrPi If you want a fast VPS server with Python installed check out : webdock.io/en?maff=wdaff 170 Pytest ...
How to set up Jupyter Notebook 7
มุมมอง 6514 หลายเดือนก่อน
How to set up Jupyter notebook 7 so that you don't end up running version 6. Also shows how to fix error 500 when exporting to PDF. If you want a fast VPS server with Python installed check out : webdock.io/en?maff=wdaff 170 #jupyter #notebook #pythonprogramming
HTML from Jupyter
มุมมอง 2614 หลายเดือนก่อน
HTML from Jupyter notebook - Output only - without the Python code. If you want a fast VPS server with Python installed check out : 🟩 webdock.io/en?maff=wdaff 170 Link to commands: 🟩 abalone-effect-ab1.notion.site/HTML-from-Jupyter-fb5484c86ab14d41847c9791f8104552 Thumbs up yeah? (cos Algos..) #jupyternotebook #tutorial #pythonprogramming
Image Similarity (AI) | Qdrant
มุมมอง 2255 หลายเดือนก่อน
This video is a short follow up to the previous one th-cam.com/video/TN0iDM0VZl4/w-d-xo.html which showed the loading of the Real Estate / Houses dataset and the embedding. For the search client I have removed the surplus code and show the slimmed down version here. Note you will still need to load the dataset and do the initial upsert before you can make the queries using this code. If you wan...
Image Similarity Search | Vision Transformer + Qdrant Vector Database
มุมมอง 8285 หลายเดือนก่อน
Image Similarity Search | Vision Transformer Qdrant Vector Database
Learn LangChain - full tutorial | ChatGPT
มุมมอง 9869 หลายเดือนก่อน
Learn LangChain - full tutorial | ChatGPT
Storing and reading prompts from database | LangChain OpenAI
มุมมอง 88210 หลายเดือนก่อน
Storing and reading prompts from database | LangChain OpenAI
LangChain | Save tokens Caching & FakeLLM
มุมมอง 41710 หลายเดือนก่อน
LangChain | Save tokens Caching & FakeLLM
OpenAI functions | control electronics
มุมมอง 10610 หลายเดือนก่อน
OpenAI functions | control electronics
Save money with LangChain and ChatOpenAI
มุมมอง 27110 หลายเดือนก่อน
Save money with LangChain and ChatOpenAI
Question Answering | LangChain and Vector Databases
มุมมอง 1.3K10 หลายเดือนก่อน
Question Answering | LangChain and Vector Databases
LangChain PALChain | Program aided language model (PAL)
มุมมอง 59210 หลายเดือนก่อน
LangChain PALChain | Program aided language model (PAL)
Digital Signatures with Python & Streamlit ( + Langchain & WebLN payment demo )
มุมมอง 25410 หลายเดือนก่อน
Digital Signatures with Python & Streamlit ( Langchain & WebLN payment demo )
LangChain & DuckDuckGo | ddg is deprecated | Use DDGS().text() generator
มุมมอง 60110 หลายเดือนก่อน
LangChain & DuckDuckGo | ddg is deprecated | Use DDGS().text() generator
LangChain Tools | Free Web Search + Math Tool
มุมมอง 1.4K10 หลายเดือนก่อน
LangChain Tools | Free Web Search Math Tool
LANGCORN | Serve LangChain with FastAPI
มุมมอง 1.5K10 หลายเดือนก่อน
LANGCORN | Serve LangChain with FastAPI
Get Ready for LangChainBitcoin ⚡ L402 | WebLN
มุมมอง 24111 หลายเดือนก่อน
Get Ready for LangChainBitcoin ⚡ L402 | WebLN
Thank you for `python -m pytest` explanation.
Thank you!☺
shot thanks! perfectly simple video, let's see how it goes for me.
Thank you!!👍
Hi @python360, I was wondering if you knew how to pull shipping label cost information. I've been struggling with this. For some reason UPS labels show up in transactions but not USPS.
I don't I'm afraid, I'd maybe look to see if USPS have an API - might be simpler (asuming you know the exact weight/size ) ?
Hi, thank you for the great video. How can i select all the elements that i found with ctrl + f ?
Thank you !! Is this what you need ? ~ While on a search result, press Alt + N to add a cursor at the current occurrence? 👍
Nevermind, i found it , it is the setting: set hlsearch. This is set to off in default
Great instructions, thanks! To be clear, the email of developer account can be different then the email of the normal ebay account?
Thank you! Yes. 100% The developer account and normal account are totally separate, and so can email addresses be different (I know this as I use a dedicated email for developer) 👍
Прикольно, прикольно, но я бы подтянул синтаксис Python, а то функции вызывать забываешь))))
Ah, yeah, thank you - good point - thanks for pointing it out!
I have a question as I came across your video. First, thank you for your content as it is very helpful. Is there another method to extract the text from a video without taking the snapshot or picture every 4 second?
Hello! Thank you for your kind comment. You could maybe adjust the timing to say 3 seconds, or 2 seconds or whatever works, but using this method there will need to be some sort of capturing of the picture in order to do the text recognition. Perhaps there will be an AI product that can do it as the video plays, but using Tesseract and Python, this is the only way I know of. If someone else reads this and can advise then that'd be neat!
@@python360 awesome, thank you very much for your feedback. Greatly appreciate it.z have a good one!
@@hammadh2162 No problem, cheers Hammad, good luck with your project!😄
u r dressed like you are gonna fly a fighter jet in a minute
You're right. That's my day job. Python stuff is for lols 😎
where is the next part ?
I once made a video on pointers, no one has watched that)) But the topic is so basic and so important.
The TH-cam algorithm seems to be very harsh on smaller channels - I made this last year and didn't dare make it public in case it lost viewers/caused unsubscribes. I'm past worrying about that now., "Que Sera Sera"
This is gold! Thank you so much for putting this together. Much appreciated. I would like to set up a basic application to pull my listings from ebay and push to another platform. Any suggestions on where to start? Easiest language to use, etc? Feel free to respond to me as a 5-year old LOL
Thank you for the good comment! Python will be the easier language to use. You can experiment getting data with the different API endpoints once you have your "developer key" - the authentication is quite complicated, and you'll need to get a new token, every 2 hours. The ebay developer forum is the best place for problems/tips.
@@python360 thanks again! Will definitely check out the forum and go the Python route to start. Thank you
It can be laborious, but if you follow their documentation eventually the mists clear! I've not used any API that uses X-auth as that's even more fiddly, certain API's need it, and some don't, so try find the ones that dont (the docs will state if x-auth is needed) while you're starting out 👍
since app is one directory up from tests/test_bcd.py, how can you import it such as from app.fetch_www import parse? This would need to go one directory up first?
. ├── app │ └── fetch_www.py └── tests └── test_bcd.py have you got the structure as above? (have you got tree installed, it's great for this kind of stuff)
Yes just like this.. even added __init__.py files in app/ and tests/ Been banging my head on this one. I'm working on a mac in vs code
I typed it all back in as I'd not kept the project, I tested it and it works ok : github.com/RGGH/mok One tip : specify your python version if you are doing it from command line : eg : $python3.10 -m pytest
@@python360 I saw this in the repo Add the project root directory to the PYTHONPATH # Replace '/home/rag/Documents/python/mok I didn't do this, that could be it no?
@@mytrustysteed8476 Yes, PATH can be a problem - if you use "python3.10 -m pytest" or whatever version of python you use then this should work. You can run "which python" and "which pytest" from terminal to check the paths.. See this : g.co/gemini/share/b76c08a4f516 PATH is a pain, but as it works on my set up then, check PATH, make sure you have __init__.py and also you can drag the file icon from VSCode file explorer, and hold down shift and drop it in between quotes when trying to get the right path into your python code.
Hi when running the tests I get error "modulenotfounderror no module named app" . I know there is something wrong with the relative imports? but I followed your structure exactly
ah ok, are you on windows or Linux/mac ?
try : python3.10 -m pytest see also : github.com/RGGH/mok clone it and see it it works?
What if you want to persist data? How can you set this up without marketplace notification exemption?
I'm not sure, other than if you maintain 2 database tables and check and store the differences?
10 years experience? Having a laugh
100% It makes a mockery of the whole thing! Better to avoid the recruitment circus if at all possible.
@@python360 absolutely. I'm in my first year of industry and feel absolutely blessed to not have to go through this hell! What a shit show.
Thank you for the video! Some of those salaries are VERY low considering living in the UK, how could someone lives there with that? Doing another video for graduates would be much appreciated, thank you again.
Yes, since the money printing/debasement during the pandemic the cost of living has increased way more than salaries. (Politicians now try and blame other things as if we don't remember). Thank you for the suggestion, I'll do some research and then do one on graduate/junior-mid level positions.👍
Hi thanks for the videos, I’m stuck on registration, I got the verification email and then was notified that my application was rejected… please advise? I’ve tried several different emails with and without vpn
Ah. I must have been lucky then. I had to wait approx 3 days but was approved eventually. Are you able to contact them and ask why? Fyi, I used a protonmail email address.
Very easy to follow and nice crisp content. This is what I was looking for. Thank you.
Ah brilliant. Thank you so much for letting me know. 👍
Is it possible to apply for jobs in UK as remote worker from other country?
Very good question! "it is mostly legal to work remotely from a different country from where your company is based. However, there is no one-size-fit-all approach" iasservices.org.uk/is-it-legal-to-work-remotely-from-another-country/
It would mostly depend on the tax system i.e. you pay income tax to the UK gov or your local gov? If you aren't working for a company that deals with international teams and has a local base it could be an issue, particularly with your local government proving you are paying your dues properly. So your first step is asking your government tax office to see how the rules are laid out.
Taxes, taxes, taxes...
@@scienc3tv (Thumbs up is me agreeing, not me in favour of taxes)👍
I need a code man.
A code?
@@python360 python code
@@python360 sorry, I need the python code which is used in this project. can you provide me?
I need help with getting 1xbet database for all live games. How can I do this
Have you tried ScraperAPI already?
Thank you so muchhhhh ! This was incredibly helpful
It's a pleasure. Really pleased it helped! 😊
הסרטון הכי מובן שראיתי בנושא הזה🥰
great video. Thanks
Thank you!
great tutorial, if your still interested in airport live stream there are 2 good channels to watch. they are Pomfus and Mark and SydSquad. Both are in Australia
Cool, thanks, I'll check them out!
Sounds interesting! Wonder if combining it with Proxy-Store's proxies would make the scraping even smoother. Thoughts?
You could, or scraperAPI offer smart proxy rotation also.
will check them out! thank you!@@python360
How can I create a hyperlink in a word document using python-docx?
I can't remember, (its v late in the UK) but the alternative would be to use 'python-docx-tpl' and do it that way. Use pip install and then add your own variable placeholders using jinja syntax.
Im trying to recreate from zero a complete template with python-docx like a resume filling its content, the body is ok but the problem is that i need to add in the header section an image like a background to cover all the header and text is front of this image. How can i achieve this?
You might be better using "python-docx-template" pip install docxtpl - so that you can start with a template file with an image already present that you put in once, manually and then reference that template and use the corresponding jinja syntax where you need to modify paragraphs etc
@@python360 thanks for the response. Im seeing your videos and i have this problem: as i see with python-docx-template i can replace names with curlys but in my case there are no curlies and also i have some bullet list as sample that i dont need It. My template IS a resume as you know there IS a section "skills" with these bullets sample, i need to eliminaré that list and populate with my own list of skills and also i have a work experience section list with position, dates, company and descripción (same with sample that i don't need It). Also the header section mentioned in the last comment. What can you recomend or It IS posible to work all these with python-docx-template instead DOCX?
@@henryvaldivia3355 Yes, so "Template" means "The word document you want to use with some variables" in this case? The word "template" in "docxtpl" is just a standard word/docx file, it's not a template file in the microsoft sense. This means you create your word doc as you would manually, and then add the jinja curly braces only where you need a variable? Forgive me if I not understood correctly, but I'd go with pip install docxtpl rather than pip install docx
Hello, just wanted to ask during the marketplace deletion/account closure notification process, where can I find the verification token and
This is the easiest and clearest explanation that i've seen so far!! It helped me immensely, thank you so much!!!
Thank you so much for your comment, this is really good to hear!!
Great tutorial, sir. But it would be great for me to hear about matadata-based text chunks filtering using langchain + qdrant! :) Liked and Subscribed : )
Noted! Thanks for the subscribe and comment sir. 👍
I'm having trouble installing tabula-py, an error pops up in JupyterLabs. Help?
Just what I needed, excellent video! Thank you.
Excellent. Thank you for the kind comment!
thanks for the video... if you want it to have a specific format do you just put the variable in that format like {{ variable }} has font courier, bold, size 14 while other items in whatever format you wish? also could you dynamically adjust a table like this too with a template variable...combining this concept and what you described in another video?
Thanks for the comment. Yes to your 1st question, andas for the table width, I don't know, I'll do some tests and maybe make a video if I can - maybe try this : stackoverflow.com/a/43053996/12670189
@@python360 thanks. I tried it out yesterday... it worked out just fine, but I did {{variable}} to avoid spacing issues. I also did it using pandas and used a ms excel file vs csv format file... that was good so I could have the input use drop down lists and such. Also I noticed the pdf conversion library needed office installed. As I do most of my development in wsl, I wasn't sure how to install it. I found another library that is convert2pdf. it required libreoffice installed, which seemed to be ok. it just had 2 snags 1) It is verbose about the conversion 2) my footer font size got adjusted. I emailed the developer to see if there is a workaround. if you know how to install ms office in a headless way in Linux, then I can go towards your referenced pdf conversion library instead.
you are an absolute madman
sir i have database in myworkbench , can i connect database with googlepalm model through sqldatabasechain? while trying to connect this error occurs :" cannot import name 'SQLDatabaseSequentialChain' from 'langchain.chains' (/usr/local/lib/python3.10/dist-packages/langchain/chains/__init__.py)"
Great topic, but your microphone sucks
thank you!
Just defining this iterator is of course blazingly fast but evaluating is not faster. The lazy iterator is just an EXPRESSION that gets evaluated when you run list(lazy_iterator). This will take about as much time as running the list comprehension because then you are actually calculating and storing these values. In other words list(lazy_iterator) is actually just a list comprehension in disguise. The lazy iterator is indeed actually useful if you don‘t need to store all values of the expression you are iterating over.
I ran the tests again: - Lazy Iterator creation: 0.000180 seconds - Converting Lazy Iterator to list: 0.425946 seconds - List Comprehension: 0.489805 seconds It is a bit faster but this will make no difference in production and may just clutter up your code.
BTW, list(list_comprehension) which is just converting an already existing list to a list is taking 0.000046 seconds.
tanks for video . I want to write python app for read Instagram story insight reach from recorded video can u help me to write this app?
I FINALLY FOUND YOU!!!!
Thank you for this video. One question though, does this mean the data is being sent to openai for it to process, I mean from privacy perspective this is really concerning
Yes. You could train it using dummy data, if you just want to get the queries to use elsewhere. If you wanted the LLM to do what I did in the video then a local LLM would be best. I didn't/don't have access to a decent computer to run one though. try : github.com/imartinez/privateGPT Using Langchain with OpenAI and SQL would be best kept to publicly available data and study/learning SQL. see also: community.openai.com/t/creating-a-chatbot-using-the-data-stored-in-my-huge-database/245942/27 pgvector is another option if you use Postgres and are familiar with embeddings.
Thank you for this video which is just what I was looking for. I am running the program in replit on an iMac. The demo.docx file won't open from within replit and when I download it, I get this error message: "Word found unreadable content in demo.docx. Do you want to recover the contents of this document? If you trust the source of this document, click Yes." When I try to recover the contents I get this error message: "Word experienced an error trying to open the file. Try these suggestions. * Check the file permissions for the document or drive. * Make sure there is sufficient free memory and disk space. * Open the file with the Text Recovery converter. (demo.docx)" Any ideas why it's not working for me? I have Microsoft Office installed.
Hi Pippa, thanks for the comment. Pretty sure we can discount insufficient memory/free disk space message. I've not used replit much, are you on a company laptop that's "locked down" ? - If you're not, then I'd try using python locally, from your laptop. If you have to use replit then maybe try open the docx file with vim, and at least you'll see you can read/write to the file. Once you know you can read/write then you can try establish if there is some weird UTF problem.
Thanks@@python360 for your advice. Your program and mine work when using Python locally so must be a limitation of replit. Very happy to have found your channel😊
but thanks, that worked
it dont work on vscode, had to use that on jupyter notebook, no idea why
I usually find that's due to multiple versions of Python being installed. In VS code did you try a virtualenv that might sort it?
Small correction, FastAPI is an ASGI framework, everything will be handled asynchronously behind the scenes regardless of how you define your CRUD method functions.
thank you - appreciate the correction👍
Interesting, man, any plans to give it a practical try? Man, I'm also really wondering - in your term you have those fancy arrow-like path representation with blue and green colors - what kind of software is that and how can I add it to my terminal?
Yes, "oh-my-zsh" plus "p10k", they are both free and open source. I use Konsole full screen and set as default term via alias in .zshrc file 👍 I might try Rye out soon with an idea I have to use "manim" in Python 👀
@@python360cool, thanks for the info, man
Thank you so much , Sir. it works for me
Good man! Glad I helped 🙂
Great video How to filter the containt by a specific language
Thank you! Been a while since I used it, but there is great documentation by Elias Dabbas for it. I'll have a look also.
this is a v useful. Looking for the code that can set the font size and allignment in the header text. Also can we have the header set only to the first page through the script
This is all I found : python-docx.readthedocs.io/en/latest/user/hdrftr.html