Saravanan666/pypi-org huggingface dataset:
Package: tesseract-pk
Tesseract: Python Minimal Web framework built for learnig purposesTesseract is a Python web framework built for learning purposes.It's a WSGI framework and can be used with any WSGI application server such as Gunicorn.Installationpipinstalltesseract_pkHow to use itBasic usage:fromtesseract.apiimportAPIapp=API()@app.route("/home")defhome(request,response):response.text="Hello from the HOME page"@app.route("/hello/{name}")defgreeting(request,response,name):response.text=f"Hello,{name}"@app.route("/book")classBooksResource:defget(self,req,resp):resp.text="Books Page"defpost(self,req,resp):resp.text="Endpoint to create a book"@app.route("/template")deftemplate_handler(req,resp):resp.body=app.template("index.html",context={"name":"Bumbo","title":"Best Framework"}).encode()Unit TestsThe recommended way of writing unit tests is withpytest. There are two built in fixtures
that you may want to use when writing unit tests with Tesseract. The first one isappwhich is an instance of the mainAPIclass:deftest_route_overlap_throws_exception(app):@app.route("/")defhome(req,resp):resp.text="Welcome Home."withpytest.raises(AssertionError):@app.route("/")defhome2(req,resp):resp.text="Welcome Home2."The other one isclientthat you can use to send HTTP requests to your handlers. It is based on the famousrequests:deftest_parameterized_route(app,client):@app.route("/{name}")defhello(req,resp,name):resp.text=f"hey{name}"assertclient.get("http://testserver/pankaj").text=="hey pankaj"TemplatesThe default folder for templates istemplates. You can change it when initializing the mainAPI()class:app=API(templates_dir="templates_dir_name")Then you can use HTML files in that folder like so in a handler:@app.route("/show/template")defhandler_with_template(req,resp):resp.html=app.template("example.html",context={"title":"Awesome Framework","body":"welcome to the future!"})Static FilesJust like templates, the default folder for static files isstaticand you can override it:app=API(static_dir="static_dir_name")Then you can use the files inside this folder in HTML files:<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>{{title}}</title><linkhref="/static/main.css"rel="stylesheet"type="text/css"></head><body><h1>{{body}}</h1><p>This is a paragraph</p></body></html>MiddlewareYou can create custom middleware classes by inheriting from thebumbo.middleware.Middlewareclass and overriding its two methods
that are called before and after each request:fromtesseract.apiimportAPIfromtesseract.middlewareimportMiddlewareapp=API()classSimpleCustomMiddleware(Middleware):defprocess_request(self,req):print("Before dispatch",req.url)defprocess_response(self,req,res):print("After dispatch",req.url)app.add_middleware(SimpleCustomMiddleware)
Package: tesseract-positional
Tesseract-PositionalA tool to save positional OCR data to a text fileTesseract-Positional allows positional data extracted using OCR to be saved as plain-text. Positional data includes text spacing and line breaks.InstallationInstallation via pip:$ pip install tesseract-positionalInstallation via cloned repository:$ git clone https://github.com/tjkessler/tesseract-positional
$ cd tesseract-positional
$ pip install .Additional dependencies (pytesseract, Pillow) will be installed during Tesseract-Positional's installation.Basic UsageVia a Python scriptSaving extracted text to a file:fromtesseract_positionalimportpositional_ocrpositional_ocr('image.tiff','output.txt')Obtaining extracted text:fromtesseract_positionalimportpositional_ocrtext=positional_ocr('image.tiff')Via the command line$ tesseract-positional image.tiff output.txtContributing, Reporting Issues and Other SupportTo contribute to Tesseract-Positional, make a pull request. Contributions should include tests for new features added, as well as extensive documentation.To report problems with the software or feature requests, file an issue. When reporting problems, include information such as error messages, your OS/environment and Python version.For additional support/questions, contact Travis Kessler (travis.j.kessler@gmail.com).
Package: tesseract-python
WIP: This module is not yet functional.The first version is targetting Tesseract 3.05.01.StatusThe current version builds and works fine on Darwin, Ubuntu, and CentOS.The PyPi release process is not working yet, so a simplepip installis not yet at reach, except for Linux x86_64 (manually released).The current code exposes the [pytesseract](https://github.com/madmaze/pytesseract) module, configured with the embdedded Tesseract. It means all calls are shelled out to atesseractbinary.RoadmapHopefully manage to get the autoamated PyPi release process nailed and working fully.Replace the current ugly shelling to thetesseractbinary by proper calls tolibtess. Inspiration in [tesserocr](https://github.com/sirfz/tesserocr).About the licenseThis repository is under the MIT license. The repository currently exposes code under the GPL 3.0 license for [pytesseract](https://github.com/madmaze/pytesseract/blob/master/LICENSE), and wraps code under the Apache 2.0 license for [Tesseract](https://github.com/tesseract-ocr/tesseract/blob/master/LICENSE).
Package: tesseract_sip
python-tesseract-sipYet another python library wrapper for Tesseract, this one uses SIP to do the
wrapping. Distributed using the same license as Tesseract.Why does this exist?python-tesseract is GPL licensed, and I needed something with an apache
license.Build RequirementsYou must have a compiler installed that is supported by python distutils.
Check out LIBS.txt for other dependency details.Additionally, SIP must be installed. You can get SIP at:http://www.riverbankcomputing.com/software/sip/UsageThere are working examples in the ‘examples’ folder. They require you to
unpack the tesseract OCR data to a directory called ‘tessdata’.The python-tesseract wiki has some useful python code samples. Anything
that uses the TessBaseAPI will most likely be compatible with this library.
However, they have a bunch of other functions (which may or may not be
useful for you) that are not implemented in this wrapper. See the wiki
on their google code site for similar usage examples.http://code.google.com/p/python-tesseract/Platforms TestedWindows 7 x64Python 2.7 x86, MSVC 2008 (Tesseract 3.02, Leptonica 1.68)Python 2.7 x64, MSVC 2008 (custom x64 build of Tess/Lept)SupportIf you do find bugs, please send fixes my way, and report them at the github
site for python-tesseract-sip. However, no technical support will be
provided. Good luck and have fun!Dustin Spicuzzadustin@virtualroadside.comGet the latest version of this code athttps://github.com/virtuald/python-tesseract-sip
Package: tessera-up
tessera-up: Define and Import Tessera Dashboards with YAML files=============================================tessera-up is a tool that helps you manage your Tessera dashboards with YAML configuration files... code-block:: bash$ tessera-up examples/simple-dashboard.yml http://tessera.example.orgFor examples, see the examples directory.Installation------------To install tessera-up:.. code-block:: bash$ pip install tessera-up
Package: tesserparsing
Image Processing and Text Extraction with Tesseract - multiprocessingpip install tesserparsingTested against Python 3.11 / Windows 10ImageProcessingandTextExtractionwithTesseractThismoduleprovidesfunctionsforimageprocessingandtextextractionusingTesseractOCR.Itincludesthefollowingfunctionalities:1.**get_short_path_name(long_name):**-Retrievestheshortpathnameforagivenlongfilename,primarilyonWindows.-Usesthe`ctypes`librarytocallthe`GetShortPathNameW`function.2.**parse_tesseract:**-UtilizesTesseractOCRtoextracttextfromalistofimagesconcurrently.-Supportsmultiprocessingwiththe`start_multiprocessing`and`MultiProcExecution`classes.-Handlescaching,subprocessexecution,andresultformatting.-ReturnsapandasDataFramecontainingstructuredOCRresults.3.**_parse_tesseract:**-InternalfunctionforparallelexecutionofTesseractOCRonasingleimage.-ConvertsimagedatatoPNGformatandinvokesTesseractsubprocess.-Returnsthestandardoutputandstandarderrorofthesubprocess.4.**ExampleUsage:**-Demonstrateshowtouse`parse_tesseract`toextracttextfromafolderofPNGimages.-OutputsapandasDataFramewithstructuredOCRresults.Usage:fromtesserparsingimportparse_tesseractfromlist_all_files_recursivelyimportget_folder_file_complete_path# optionalfolder=r"C:\testfolderall"piclist=[x.pathforxinget_folder_file_complete_path(folder)ifx.ext.lower()==".png"]language="por"tesser_path=r"C:\Program Files\Tesseract-OCR\tesseract.exe"df=parse_tesseract(piclist,language,tesser_path,tesser_args=(),usecache=True,processes=5,chunks=1,print_stdout=False,print_stderr=True,)# df# Out[3]:#       aa_level  aa_page_num  aa_block_num  ...  aa_end_x  aa_end_y  aa_area# 0            1            1             0  ...      1600       720  1152000# 1            2            1             1  ...      1570        43    27684# 2            3            1             1  ...      1570        43    27684# 3            4            1             1  ...      1570        43    27684# 4            5            1             1  ...       100        43     1156#         ...          ...           ...  ...       ...       ...      ...# 5685         4            1             1  ...       130        44     1515# 5686         5            1             1  ...       130        44     1515# 5687         1            1             0  ...       115        27     3105# 5688         1            1             0  ...       112        21     2352# 5689         1            1             0  ...        81       105     8505# [5690 rows x 20 columns]Note:ThismodulerequirestheTesseractOCRexecutabletobeinstalledonthesystem.Ensurethenecessarydependenciesareinstalledbeforeusingthesefunctions.
Package: tessie-api
Tessie Python API WrapperDescriptionTessie Python API Wrapper is a simple wrapper designed to interact with various APIs exposed by Tessie.https://pypi.org/project/tessie-api/Getting StartedPrerequisitesBefore you begin, ensure you have met the following requirements:Python version >=3.5InstallationTo install Tessie Python API Wrapper, follow these steps:Clone the repository:gitclonehttps://github.com/andrewgierens/sems_portal_api.gitInstall the required packages:pipinstall-rrequirements.txtUsageTo use Tessie Python API Wrapper, you need to have Python andaiohttpinstalled. Here’s a quick example to get you started:importasynciofromtessie_apiimportget_state_of_all_vehiclesasyncdefmain():asyncwithaiohttp.ClientSession()assession:# ClientSession is created here and will be closed when exiting the blockdata=awaitget_state_of_all_vehicles(session=session,api_key="TESSIE_KEY",only_active=True)print(data)if__name__=="__main__":asyncio.run(main())Testspipinstall-e.
pytestContributingContributions to Tessie Python API Wrapper are welcome and appreciated. If you have any suggestions or bug reports, please open an issue in the repository.creating a pull request.LicenseThis project is licensed under the GNU GPLv3 License - see theLICENSE.mdfile for details.ContactIf you have any questions or want to reach out, you can contact me atapgierens@gmail.comContributorsAndrew GierensBrett Adams
Package: tessif
Latest Stable VersionYou can installTessifviapipfromPyPI.
Install using a console with your virtual environment activated:$pipinstalltessifLatest Development Version (potentially unstable)You can install the development version ofTessifviapipfromTestPyPI.
Install using a console with your virtual environment activated:$pipinstall--index-urlhttps://test.pypi.org/simple/--extra-index-urlhttps://pypi.org/simple/tessifThis installs theTestPyPIversion of tessif while resolving the dependencies onPyPI.LicenseDistributed under the terms of theMIT license,Tessifis free and open source software.
Package: tessif-calliope-0-6-6post1
Tessif-Plugin for including the software-tool oemof version 4.4.InstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease see theWorklow Reference(Github Repo Link) for details.ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),tessif-calliope-0-6-6post1is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: tessif-examples
Tessifexample libraryInstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease see theWorklow Reference(Github Repo Link) for details.ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),tessif-examplesis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: tessif-fine-2-2-2
Tessif-Plugin for including the software-tool oemof version 4.4.InstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease see theWorklow Reference(Github Repo Link) for details.ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),tessif-fine-2-2-2is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: tessif-oemof-4-4
Tessif-Plugin for including the software-tool oemof version 4.4.InstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease see theWorklow Reference(Github Repo Link) for details.ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),tessif-oemof-4-4is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: tessif-pypsa-0-19-3
Tessif-Plugin for including the software-tool oemof version 4.4.InstallationPlease see theInstallation Guide(Github Repo Link) for details.UsagePlease see theWorklow Reference(Github Repo Link) for details.ContributingContributions are very welcome.
To learn more, see theContributor Guide(Github Repo Link).LicenseDistributed under the terms of theMIT license(Github Repo Link),tessif-pypsa-0-19-3is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was created using theMathias Ammontweaked version of theHypermodern-Pythonproject foundation proposed byClaudio Jolowicz.
Package: tessitura
TessituraTools for talking to the Tessitura API from Python. This is all just wet paint at the moment.Requires Python 3.6+To install just do:$ pip install tessituraTo use see the following example:import tessitura
import pprint

endpoint = "https://your.tessitura-endpoint.org/TessituraService/"
credentials = "username:group:location:password"

# The REST API method you wish to call. This may need to be created with other information depending on the request, such as a session id -- See Tessitura documentation for more information. Please note there should be no trailing slash at the end.

method = "Diagnostics/Status"

# The type of request you wish to make. Currently supports GET and POST.

request_type = "GET"

# Use this to add any query string parameters to a GET request
params = {}

# Use this to add any form data to a POST request
data = {}

# Call the API
rsp = tessitura.rest_call(endpoint, credentials, request_type, method, params=params, data=data, timeout=10)

# Print out the results in JSON format
pprint.pprint(rsp)
Package: tess-locator
Where is my favorite star or galaxy in NASA’s TESS Full Frame Image data set?tess-locatoris a user-friendly package which combines thetess-pointandtess-cloudpackages
to enable the positions of astronomical objects in the TESS data set
to be queried in a fast and friendly way.Installationpython-mpipinstalltess-locatorExample useConverting celestial coordinates to TESS pixel coordinates:>>>fromtess_locatorimportlocate>>>locate("Alpha Cen")Listof3coordinates↳[TessCoord(sector=11,camera=2,ccd=2,column=1699.1,row=1860.3,time=None)TessCoord(sector=12,camera=2,ccd=1,column=359.9,row=1838.7,time=None)TessCoord(sector=38,camera=2,ccd=2,column=941.1,row=1953.7,time=None)]Obtaining pixel coordinates for a specific time:>>>locate("Alpha Cen",time="2019-04-28")Listof1coordinates↳[TessCoord(sector=11,camera=2,ccd=2,column=1699.1,row=1860.3,time=2019-04-2800:00:00)]Obtaining pixel coordinates for a specific celestial coordinate:>>>fromastropy.coordinatesimportSkyCoord>>>crd=SkyCoord(ra=60,dec=70,unit='deg')>>>locate(crd)Listof4coordinates↳[TessCoord(sector=19,camera=2,ccd=2,column=355.3,row=1045.9,time=None)TessCoord(sector=25,camera=4,ccd=4,column=1107.0,row=285.9,time=None)TessCoord(sector=26,camera=4,ccd=3,column=317.7,row=395.9,time=None)TessCoord(sector=52,camera=4,ccd=4,column=603.5,row=240.2,time=None)]You can access the properties ofTessCoordobjects using standard list and attribute syntax:>>>crdlist=locate("Alpha Cen")>>>crdlist[0].sector,crdlist[0].camera,crdlist[0].ccd(11,2,2)>>>crdlist[0].column,crdlist[0].row(1699.0540739785683,1860.2510951146114)When you have obtained aTessCoordobject, you can use it to obtain a list of the TESS Full Frame Images (FFIs) which covered the position.
The objects returned are provided by thetess-cloudpackage.>>>crdlist[0].list_images()Listof1248images↳[TessImage("tess2019113062933-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019113065933-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019113072933-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019113075933-s0011-2-2-0143-s_ffic.fits")...TessImage("tess2019140065932-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019140072932-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019140075932-s0011-2-2-0143-s_ffic.fits")TessImage("tess2019140082932-s0011-2-2-0143-s_ffic.fits")]DocumentationPlease visit thetutorial.Similar packagestess-pointis the package being called behind the scenes. Compared totess-point, we add a user-friendly API and the ability to specify the time, which is important for moving objects.astroquery.mastincludes the excellentTesscutClass.get_sectors()method which queries a web API. This package provides an offline version of that service, and adds the ability to query by time.tess-waldolets you visualize how a target moves over the detector across sectors. It queries theTessCutservice to obtain this information. This package adds the ability to create such plots offline.
Package: tessplan
tessplan is a tool to schedule observations of TESS objects of interest.
It enables the user to determine visible transits of a TOI from any observatory
at any future time, and can determine in a given time window what planets will
be transiting. It retrieves information from ExoFOP-TESS, so a user can use that
information (such as a TFOP Working Group prioritization) to select possible
planet candidates to observe.
Package: tess-py-api
tess_py_apiPython wrapper aroundTesseract-OCRC language API using Python built-in ctypes module.tess_py_api is much faster thanpytesseractwhen dealing with more than one image and lets Python developers use all of the Tesseract library functionality using the auto-generatedPython base wrapper.INSTALLATIONme@home:~$pipinstalltess_py_apiTo use this module you need to have Tesseract installed.For Windows users, Tesseract-OCR executable can be downloaded fromhere(note that you will need to add Tesseract to your path).For Linux users, you can compile Tesseract from source or get it via your package manager (note that you will need to add an enviroment variable called TESSDATA_PREFIX pointing to your tessdata directory).USAGEfromtess_py_apiimportPyapiapi=Pyapi("eng")image_path="/path/to/image"print(api.image_to_string(image_path))if you have OpenCV installed you can use it:importcv2ascvfromtess_py_apiimportPyapiapi=Pyapi("eng")image=cv.imread("path/to/image")print(api.image_to_string(image))or you can use python built-in PIL/pillow:fromPILimportImagefromtess_py_apiimportPyapiapi=Pyapi("eng")image=Image.open("path/to/image")print(api.image_to_string(image)Python context manager is also supported:fromtess_py_apiimportPyapiwithPyapi("eng")asapi:print(api.image_to_string("/path/to/image"))LICENSEThis repository is under the MIT license.
The repository wraps code under the Apache 2.0 license forTesseract.
Package: tess-sip
TESS SIPTool for creating a Systematics-insensitive Periodogram (SIP) to detect long period rotation in NASA's TESS mission data. Read more about TESS-SIP in our publishedResearch Note of the American Astronomical Society.What is SIPSIP is a method of detrending telescope systematics simultaneously with calculating a Lomb-Scargle periodogram. You can read a more in-depth work of how SIP is used in NASA's Kepler/K2 datahere.UsageThis repository contains a Python tool to create a SIP. An example of a SIP output is below. You can run a simple notebook in thedocsfolder to show how to use SIP.fromtess_sipimportSIPimportlightkurveaslk# Download target pixel filestpfs=lk.search_targetpixelfile('TIC 288735205',mission='tess').download_all()# Run SIPr=SIP(tpfs)ris a dictionary containing all the information required to build a plot like the one below.InstallationYou can pip install this tool:pip install tess_sipRequirementsTo run this demo you will need to havelightkurveinstalled, with a minimum version number of v2.0.AcknowledgementsThis tool uses thelightkurvetool to build a SIP, and relies on theRegressionCorrectorandSparseDesignMatrixlightkurve tools. The SIP project was developed in part at theonline.tess.sciencemeeting, which took place globally in 2020 September. This research made use ofAstropya community-developed core Python package for Astronomy.
Package: tessToPy
tessToPyOverviewtessToPy is a python package for representing a tessellated structure generated by Neper (https://neper.info/). This tessellation representation can be combined with a python representation of the discretized structure and used to write input files for finite element analysis (FEA). The primary function of the code is to regularize a periodic tessellation. The regularization tries to remove short edges from the structure, as short edges could be detremental to the overall quality of a FEA mesh.A unregularized and regularized tessellation is shown below:Unregularized structure with edges to be deletedRegularized structure with edges deletedThe effect of regularization on the edge length distribution in a 400 cell tessellation is shown  below:Getting startedThis package can be installed with$ pip install tessToPyThe tessellation is loaded as an object bytess = tessToPy.PeriodicTesselation(tessellation.tess)The tessellation is regularized bytess.regularize(n=len(tess.edges))and can be written to a condensed .tess file bytess.write(new_file_name)The tessellation can also be meshed (with gmsh, must be installed), by callingtess.mesh2D(elem_size)where elem_size is the target length of the elements along an edge.The file original_tessellation_processing.py is compatible with theFoamModelingproject, which has not been updated. This can be used to generate LS-DYNA input files for modeling foam structures. Please seenCharacterization and modeling of the mechanical behavior of polymer foamby Daniel Morton for further context.LicenseSeeLICENSE.mdfor license information (MIT license).CitationThis software was used as part of the PhD thesisCharacterization and modeling of the mechanical behavior of polymer foamby Daniel Morton, which can be used as a reference.