from fastapi.security import APIKeyHeader
from fastapi import Security, HTTPException, status
from fastapi import APIRouter, FastAPI, Depends
import sqlite3
print(sqlite3.sqlite_version)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document | |
"It was a beautiful summer day, the sun was shining bright and the birds were chirping happily. I was on my way to visit my friend, Tom, who recently moved to a new place. He had been telling me about it for weeks and I was eager to see it in person. He had described it as a charming little house with a big backyard, nestled in the heart of a vibrant and bustling neighborhood. | |
He had sent me the address a few days ago, ""123 Elm Street, Springfield, Illinois, 62704"". I had punched it into my GPS and off I went, cruising down the highway with my favorite music playing on the radio. I was excited about the prospect of spending the day with Tom, catching up on old times and exploring his new neighborhood. | |
As I drove, I couldn't help but marvel at the beauty of the surrounding landscape. The lush green fields, the clear blue sky, it was a sight to behold. I could see why Tom had chosen to move here. It was peaceful, serene, and yet full of life and energy. I was sure he was going to love it here. | |
Aft |
Using two SQLite database connection in-memory.
from sqlalchemy import create_engine, MetaData
from sqlalchemy import text
from sqlalchemy.orm import DeclarativeBase
from sqlalchemy import select
from sqlalchemy import insert
from sqlalchemy.orm import Mapped, mapped_column
A simple approach to using Tesseract with Python using pytesseract.
For more information about Tesseract, see the offical documentation
Install dependecies:
sudo add-apt-repository ppa:alex-p/tesseract-ocr5
sudo apt update
sudo apt install tesseract-ocr-por
import smtplib
from email.mime.text import MIMEText
smtp_server = "smtp.gmail.com"
smtp_port = 587
smtp_username = "noanswer@gmail.br"
smtp_password = "qwer1234"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Word cloud is an excellent visualization by which to highlight key words in a text.
In the text classification task, you can use this to see the most common words that appear in the entire text.
We have a pandas dataframe with text collumn our goal is to see the most frequent words.
pip install wordcloud -q
pip install pandas -q
Offical documentation - https://www.soapui.org/getting-started/installing-soapui/installing-on-linux-or-unix/
Snipet
wget https://dl.eviware.com/soapuios/5.7.1/SoapUI-x64-5.7.1.sh
!pip install fastapi pyngrok uvicorn nest-asyncio -q
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel
from loguru import logger
NewerOlder