Saravanan666/pypi-org huggingface dataset:
Package: extract-model
extract_modelFacilitates read-in and extraction for ocean model output. Most functions work on both structured and unstructured model output. Unstructured functionality has been tested with FVCOM and SELFE output.In particular this package can:interpolate a model time series to a longitude, latitude location on a 2D grid, while bringing along the calculated z coordinates, withselect()saves the weights of the interpolation to save time in the accessor if used, or allows user to inputusesxESMFfor fast interpolation that respects longitude/latitude gridsfind the nearest grid point to a longitude, latitude location on a horizontal grid (structured or unstructured) insel2d()usingxoakxoaksaves the calculated index so that subsequent searches are fasterselect a sub-region of a structured or unstructured grid in two ways withsub_bbox()andsub_grid()has anxarrayaccessor for convenient access to methodsusescf-xarrayto understandxarrayDataset metadata and allow for generic axis and coordinate names as well as calculate vertical coordinatescan preprocess a variety of model output types (including ROMS, HYCOM, POM, and FVCOM) to improve metadata and ease of use:warning:If you are using Windows: Horizontal interpolation currently will not work inextract_modeluntilxESMFis installable on Windows. Other functions will work.Project based on thecookiecutter science project template.InstallationFrom conda-forgeThis will install for all operating systems:condainstall-cconda-forgeextract_modelbut it includes only minimal requirements. If you want to install packages to run the example docs notebooks and to make unstructured grid subsetting faster, you can additionally install for Windows:$condainstall--fileconda-requirements-opt-win.txtFor running the example docs notebooks, horizontal interpolation (withxESMF), and to make horizontal subsetting faster, install additional packages for Mac and Linux:$condainstall--fileconda-requirements-opt.txtFrom PyPIpipinstallextract_modelWith environmentClone the repo:$gitclonehttps://github.com/axiom-data-science/extract_model.gitIn theextract_modeldirectory, install conda environment (for Mac or Linux):$condaenvcreate-fenvironment.ymlor for Windows:$condaenvcreate-fenvironment-win.ymlLocalFor local package install, after cloning the repository, in theextract_modeldirectory:$pipinstall-e.DevelopmentTo also develop this package, install additional packages with:$condainstall--filerequirements-dev.txtTo then check code before committing and pushing it to github, locally run$pre-commitrun--all-files
Package: extract-office-content
extract_office_contentUseInstallextract_office_content$pipinstallextract_office_contentRun by CLI.Extract All office file's content.$extract_office_content-h
usage:extract_office_content[-h][-img_dirSAVE_IMG_DIR]file_path

positionalarguments:
file_path

optionalarguments:
-h,--helpshowthishelpmessageandexit-img_dirSAVE_IMG_DIR,--save_img_dirSAVE_IMG_DIR

$extract_office_contenttests/test_filesExtract Word.$extract_word-h
usage:extract_word[-h][-img_dirSAVE_IMG_DIR]word_path

positionalarguments:
word_path

optionalarguments:
-h,--helpshowthishelpmessageandexit-img_dirSAVE_IMG_DIR,--save_img_dirSAVE_IMG_DIR

$extract_wordtests/test_files/word_example.docxExtract PPT.$extract_ppt-h
usage:extract_ppt[-h][-img_dirSAVE_IMG_DIR]ppt_path

positionalarguments:
ppt_path

optionalarguments:
-h,--helpshowthishelpmessageandexit-img_dirSAVE_IMG_DIR,--save_img_dirSAVE_IMG_DIR

$extract_ppttests/test_files/ppt_example.pptxExtract Excel.$extract_excel-h
usage:extract_excel[-h][-f{markdown,html,latex,string}][-oSAVE_IMG_DIR]excel_path

positionalarguments:
excel_path

optionalarguments:
-h,--helpshowthishelpmessageandexit-f{markdown,html,latex,string},--output_format{markdown,html,latex,string}-oSAVE_IMG_DIR,--save_img_dirSAVE_IMG_DIR

$extract_exceltests/test_files/excel_example.xlsxRun by python script.Extract all.frompathlibimportPathfromextract_office_contentimportExtractOfficeContentextracter=ExtractOfficeContent()file_list=list(Path('tests/test_files').iterdir())forfile_pathinfile_list:res=extracter(file_path)print(res)Extract Word.fromextract_office_contentimportExtractWordword_extract=ExtractWord()word_path='tests/test_files/word_example.docx'text=word_extract(word_path,"outputs/word")# or byteswithopen(word_path,'rb')asf:word_content=f.read()text=word_extract(word_content,"outputs/word")print(text)Extract PPT.frompathlibimportPathfromextract_office_contentimportExtractPPTppt_extracter=ExtractPPT()ppt_path='tests/test_files/ppt_example.pptx'save_dir='outputs'save_img_dir=Path(save_dir)/Path(ppt_path).stemres=ppt_extracter(ppt_path,save_img_dir=str(save_img_dir))# or byteswithopen(ppt_path,'rb')asf:ppt_content=f.read()res=ppt_extracter(ppt_content,save_img_dir=str(save_img_dir))print(res)Extract Excel.fromextract_office_contentimportExtractExcelexcel_extract=ExtractExcel()excel_path='tests/test_files/excel_with_image.xlsx'res=excel_extract(excel_path,out_format='markdown',save_img_dir='1')# orwithopen(excel_path,'rb')asf:excel_content=f.read()res=excel_extract(excel_content,out_format='markdown',save_img_dir='1')print(res)See details forExtractOfficeContent.
Package: extractor-phone-email
Extractor_phone_emailGet from text or clipboard emails and phone numbersInstall$pipinstallextractor-phone-emailHow to use# Import pakagefromextractor_phone_emailimportextractor# Make an intance reading the clipboardmyExtractor=extractor.Extractor()# Make an intance with specific textmyExtractor=extractor.Extractor("This is an example text +524493247419 hernandezdarifrancisco@gmail.com")#Return all numbers and emailsmyExtractor.get()# Return only phone numbersmyExtractor.get_phones()# Return only emailsmyExtractor.get_emails()
Package: extractorx
ExtractorX APIInstallationVia pip:pip install extractorxExample Usage:>>> from extractorx.api import ExtractorX
>>> with open("key.txt", "r") as f:
...     key = f.read()
>>> api = ExtractorX(key)
>>> url = "https://www.cnn.com/2023/06/09/investing/bull-market-artificial-intelligence/index.html"
>>> result = api.from_url(url)
>>> result.keys()
dict_keys(['body', 'link', 'metadata', 'title'])
>>> result.get("title")
'How can we possibly be in a bull market now? Two letters: AI | CNN Business'
>>> result.get("body")
'New York (CNN) —— The bear market is over. But the bear economy isn’t. The eurozone has sunk into recession and some economists fear the United States is next...BSD 3-Clause LicenseCopyright (c) 2022 Trevor McGuire.
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: extractpdf
extractpdfA python package focused on extracting content out of PDF files.There seems to bemany options out there, but no single solution that is easy to install, even on Windows, and focus specifically on PDF files. So we have created this extractpdf package.It is based onTextractstructure, but focuses on PDF only, and adds also other tools to the pipline, such asPyPDF2andCamelot.Usage:To use this package, install it from pypi using:pip install extractpdfThen use it like so:importextractpdfasepdf# local filecontent=epdf.process('my_file.pdf')# url:content=epdf.process('http://www.example.com/some_file.pdf')Advanced Usage:To control more features, one can use the PDFExtractor itself:fromextractpdfimportPDFExtractorepdf=PDFExtractor()content=epdf.get_content('http://www.example.com/some_file.pdf',keep_download=True)f=epdf.filename# f = some_file.pdfepdf.delete_file()DevelopmentWe welcome contributers warmly!For running this project locally, you need first to install the dependency packages.
To install them, you can usepipenv:Installation using pipenv (which combines virtualenv with pip)Install pipenv# if you haven't installed pipsudoeasy_installpip# install pipenvpipinstallpipenvOn MacOS - you can use homebrew:brew install pipenvSet the pipenv to be local in the project:
On Windows:setPIPENV_VENV_IN_PROJECT=trueOn Mac/Linux:exportPIPENV_VENV_IN_PROJECT=true... and then, install the packages and run the server# install all packages
pipenv install
Package: extractreq
Extraction Dependency Based on Evolutionary Requirement Using Natural Language ProcessingAuthorRakha AsyrofiVersion0.0.3Updated2021-10-09overviewlive_demoHow to make Extraction Dependency Based on Evolutionary Requirement Using Natural Language ProcessingExtraction Dependency Based on Evolutionary Requirement Using Natural Language Processing described in our Proceeding Conference atISRITI2020. Please kindly cite the following paper when you use this tool. It would also be appreciated if you send me a courtesywebsiteandgoogle scholar, so I could survey what kind of tasks the tool is used for.Developed by Asyrofi (c) 2021How to installinstallation using pypi:pip install extractreqHow easy to useekspart module:fromextractreq.modul_ekspartimportpartOfgrd_param="grd.xlsx"file_param="test.xlsx"srs_param="indeks_parameter"# output_mode = ['pertama', 'kedua', 'ketiga', 'stat']partOf().extractPart(grd_param,file_param,srs_param,'pertama')Check out:https://youtu.be/-d96h9mhh9sStanford modul:fromextractreq.modul_stanfordSentimportstanford_clausesent="I have friends, but nobody cares me"stanford_clause().get_clause_list(sent)# stanford_clause(file_param).main(srs_param)Spacy modul:importspacyfromextractreq.modul_spacySentimportspacyClausenlp=spacy.load('en_core_web_sm')doc=nlp("I love you 300, but I don't like you")spacyClause().extractData(doc)# spacyClause(file_param).main(srs_param)Triplet modul:fromextractreq.modul_tripletimportextractNlpsent="I have friends, but nobody cares me"# output_mode = ['parse_tree', 'spo', 'result']extractNlp().triplet_extraction(sent,'parse_tree')# extractNlp(file_param).main(srs_param, output)FeaturesDapat digunakan untuk mengekstraksi kebergantungan kebutuhanDapat digunakan untuk mencari relasi kebergantungan kebutuhanDapat digunakan memisahkan kalusa dari setiap kalimat menggunakan stanford, spacyDapat memisahkan triplet dari sebua kalimatContributeIssue Tracker:https://github.com/asyrofist/Extraction-Requirement/issuesSource Code:https://github.com/asyrofist/Extraction-RequirementSupportIf you are having issues, please let us know. We have a mailing list located at:asyrofi.19051@mhs.its.ac.idCitationIf you find this repository useful for your research, please use the following.@INPROCEEDINGS{9315489,  author={Asyrofi, Rakha and Siahaan, Daniel Oranova and Priyadi, Yudi},  
booktitle={2020 3rd International Seminar on Research of Information Technology and Intelligent Systems (ISRITI)},   
title={Extraction Dependency Based on Evolutionary Requirement Using Natural Language Processing},   
year={2020},  
volume={},  
number={},  
pages={332-337},  
doi={10.1109/ISRITI51436.2020.9315489}}LicenseThe project is licensed under the MIT LicenseReference[1]https://github.com/rahulkg31/sentence-to-clauses[2]https://subscription.packtpub.com/book/data/9781838987312/2/ch02lvl1sec13/[3]https://github.com/kj-lai/SentenceTriplet[4]https://youtu.be/-d96h9mhh9s
Package: extract-samples
overview폴더 별로 필요한 파일 수를 추출하는 함수Args:
        folder_list (list): 파일 경로 목록
        count_list (list): 폴더 별로 추출할 파일 수 목록
        path_count (int): 경로를 구성하는 '/' 개수

    Returns:
        list: 추출된 파일 경로 목록

    Example:
        위와 같은 경로가 있을 때
        "최하위 폴더에서 1개씩 가져온다."라는 조건이라면
        extract_sample(file_path_list, [1], 3)

        "object1-1에 존재하는 파일 중 랜덤으로 1개를 가져온다."라는 조건이라면
        extract_sample(file_path_list, [1], 2)

        "object1-1-1 >> 2개
        object1-1-2 >> 3개
        object1-1-3 >> 1개
        순으로 가져온다."라는 조건이라면
        extract_sample(file_path_list, [2, 3, 1], 3)
Package: extract-social-media
Extract Social MediaExtract social media links from websites.Many websites reference their facebook, twitter, linkedin, youtube accounts
and these can be invaluable to gather 360 degree information about a company.This library allows to extract links or handles for the most commonly used
international social media networks.Free software: MIT licensePython versions: 2.7, 3.4+FeaturesExtract social media links/handles from html contentAttempts to extract links/handles also from widgets, scripts, etc.Supports most widely used social networksfacebooklinkedintwitteryoutubegithubgoogle pluspinterestinstagramsnapchatflipboardflickrweiboperiscopetelegramsoundcloudfeedburnervimeoslidesharevkontaktexingQuickstartimportrequestsfromhtml_to_etreeimportparse_html_bytesres=requests.get('https://techcrunch.com/contact/')tree=parse_html_bytes(res.content,res.headers.get('content-type'))set(find_links_tree(tree)){'http://pinterest.com/techcrunch/','http://www.youtube.com/user/techcrunch','http://www.linkedin.com/company/techcrunch','https://www.facebook.com/techcrunch','https://flipboard.com/@techcrunch','http://instagram.com/techcrunch','https://plus.google.com/+TechCrunch','https://instagram.com/techcrunch','https://twitter.com/techcrunch'}Caveatscurrently finds all social media links on a pageneed to look into finding most relevant links based on link location,
link context, company name, etc.CreditsThis package was created withCookiecutterand thefluquid/cookiecutter-pypackageproject template.History0.4.0 (2017-08-18)naive blacklisting for photos, videos, search, tweets, etc.0.3.0 (2017-08-18)fixed exception when “href” is empty or non-string0.2.0 (2017-06-08)better test coverageaccepting data-href0.1.0 (unreleased)First release on PyPI.
Package: extract-specific-lines
extract_specific_lines1 Introductionextract_specific_linesis a tool to extract specific lines which maps the query ids (of the query file) from the subject file.2 Installationpip install extract_specific_linesThere will be a commandextract_specific_linescreated under the same directory as yourpipcommand.3 Usageusage: extract_specific_lines.py [-h] [-q <str> [<str> ...]] [-f <query file>]
                                 [-s [<subject file>]] [-s1 <pattern>]
                                 [-s2 <pattern>] [-d1 [<int>]] [-d2 [<int>]]
                                 [-o [<outfile>]] [-v] [-V] [--version]

to extract specific lines from the subject file which maps the query ids.
written by Guanliang MENG

optional arguments:
  -h, --help            show this help message and exit
  -q <str> [<str> ...]  query list
  -f <query file>       query list file
  -s [<subject file>]   subject file [stdin]
  -s1 <pattern>         query file sep_pattern [\s+]
  -s2 <pattern>         subject file sep_pattern [\s+]
  -d1 [<int>]           which field in the query_file is to used? [0]
  -d2 [<int>]           which field in the subject_file is to used? [0]
  -o [<outfile>]        outfile [stdout]
  -v                    invert the output [False]
  -V                    verbose output
  --version             show program's version number and exitAuthorGuanliang MENGCitationCurrently I have no plan to publishextract_specific_lines.
Package: extract-specific-sites-from-msa
extract_specific_sites_from_msa1 Introductionextract_specific_sites_from_msais a tool to extract some sites (or codon) from a multiple sequence alignment.2 Installationpip install extract_specific_sites_from_msaThere will be a commandextract_specific_sites_from_msacreated under the same directory as yourpipcommand.3 Usageusage: extract_specific_sites_from_msa [-h] [-infile <file>]
                                       [-format {fasta,emboss,stockholm,phylip,phylip-relaxed,clustal}]
                                       [-outformat {fasta,emboss,stockholm,phylip,phylip-relaxed,clustal}]
                                       [-outfile <file>] [-config <file>]
                                       [-codon <int>]

To extract some sites (or codon) from a multiple sequence alignment. By
Guanliang MENG, go to
https://github.com/linzhi2013/extract_specific_sites_from_msa for more
details.

optional arguments:
  -h, --help            show this help message and exit
  -infile <file>        input multiple sequence alignment file
  -format {fasta,emboss,stockholm,phylip,phylip-relaxed,clustal}
                        input file format [phylip-relaxed]
  -outformat {fasta,emboss,stockholm,phylip,phylip-relaxed,clustal}
                        output file format [fasta]
  -outfile <file>       outfile
  -config <file>        a file containing the sites to be extracted (1 left-
                        based). do not support 2-5, you should write 2 3 4 5
                        instead, the site numbers in config can be on one line
                        or multiple lines.
  -codon <int>          codon site to be extracted [2]AuthorGuanliang MENGCitationCurrently I have no plan to publishextract_specific_sites_from_msa.However, sinceextract_specific_sites_from_msamakes use of Biopython, you should cite it if you use msaconverter in your work:Peter J. A. Cock, Tiago Antao, Jeffrey T. Chang, Brad A. Chapman, Cymon J. Cox, Andrew Dalke, Iddo Friedberg, Thomas Hamelryck, Frank Kauff, Bartek Wilczynski, Michiel J. L. de Hoon: “Biopython: freely available Python tools for computational molecular biology and bioinformatics”. Bioinformatics 25 (11), 1422–1423 (2009). https://doi.org/10.1093/bioinformatics/btp163Please go tohttp://www.biopython.org/for more details.
Package: extracttoc
extracttocExtract the table of contents from a markdown file with an easy to use command line tool written in Python.InstallationpipinstallextracttocUsageusage:extracttoc[-h][-s][-c][-i][-lLIMIT]file

Extractsthetableofcontentsfromamarkdownfile.

positionalarguments:fileProvideamarkdownfilefromwhichtoextractthetoc.

optionalarguments:-h,--helpshowthishelpmessageandexit-s,--saveWritetheTOCtoamdfile.Filenamewillbe:{input-file-name}-toc.md-c,--copyCopytheTOCtoyourclipboard-i,--insertInserttheTOCdirectlyintothefileinfrontofthefirstline.-lLIMIT,--levelsLIMITSetthenumberoflevelswhichwillbeincludedintheTOC.Examples>extracttocmyfile.md# displays the TOC>extracttoc-cmyfile.md# display & copy TOC to clipboard>extracttoc-l2myfile.md# limit TOC to header level 2>extracttoc-l2-smyfile.md# limit TOC to lvl 2 & write to separate file
Package: extract-todo
extract-todoextract-todo is a simple commandline tool for the extraction of TODOs.
It can extract TODOs from single-line-comments like:# TODO something todoIt prints the file, line number and the TODO text.InstallationYou need python3+ to run this tool. It can be installed from pypi withpip install extract-todoUsageYou can use this tool with the commandpython -m extract_todo /path/to/fileorextract-todo /path/to/fileIt prints the filename, line number and the TODO text. Example output:.\tests\files\test.py
  LINE 1:       test
  LINE 5:       test 2Author and LicenseCopyright (C) Jens Wilberg July 2021extract_todo.py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

extract_todo.py is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with extract_todo.py.  If not, see <http://www.gnu.org/licenses/>.
Package: extractTool
This installation was previously tested only with Linux, but should also work under Windows.Installation Description (PyPi)https://pypi.org/project/extractTool/pip install extractTool(you can write this command in your console and follow the installation description on the webside OR    you can download the file and install the CLI tool local: )Installation Description (local)pip for pip install is required.After downloading our Tool from PyPiTo run our CLI tool, the following file must be executed in the project folder:pip install -r requirements.txt --user (or sudo pip install -r requirements.txt)In this file all required plugins are listed, which we use in our tool.Because sometimes there are some problems with the installation you must follow these next steps:First, ensure you have gdal installed. I just run the following:sudo apt-get install libgdal1i libgdal1-dev libgdal-devTo get the version that apt-get provided you please run:gdal-config --versionFor example I get 2.2.3 so my pygdal version will be 2.2.3.3. (but replace the version with your version)pip install pygdal==2.2.3.3If you get some error you may lookhereNext step:pip install pytestThen you can navigate in any common console in the folder of the tool ("extractTool") and
there, the following command must be executedpython extractTool.py --path='[filepath]' --detail=[bbox|convexHull] --timeforfilepathyou must insert a filepath to your testdata--bbox← for the bounding box of the file/folder (set as default)--convexHull← to get all the covexHull of the file/folder--time← (optionally) You can add this parameter to get additionally the timeextendsome examplespython extractTool.py --path='/home/maxmusterman/test1.geojson' --detail=bbox --time   
python extractTool.py --path='/home/maxmusterman/test2.nc' --detail=convexHull
python extractTool.py --path='/home/maxmusterman/testdict' --time
Package: extracturl
Extract URLExtract URL from StringScreenshotInstall$ pip install extracturlUsageimportextracturltext="""Yoginth is a Good Boy and he loves https://gitlab.com andhttps://twitter.com he tried to open ftp://yoginth.gitlab.iobut gitlab blocked it!"""extracturl.extract(text)Get HelpThere are few ways to get help:Pleasepost questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.For bug reports and feature requests, open issues.For direct and quick help, you canemail me.How to contributeHave an idea? Found a bug? Seehow to contribute.Thanks!LicenseMIT