Saravanan666/pypi-org huggingface dataset:
Package: opengen
OpenGenCode generation tool for OpEnInstallationTo use this Python package, run:pip install opengenYou will then be able to use it in your project withfromopengenimport*orimportopengenasogIn order to build the auto-generated code, you need the
Rust compiler.For detailed documentation, please refer toOpEn's website.Citing OpEnPlease, cite OpEn as follows:@inproceedings{open2020,
author="P. Sopasakis and E. Fresk and P. Patrinos",
title="OpEn: Code Generation for Embedded Nonconvex Optimization",
booktitle="IFAC World Congress",
year="2020",
address="Berlin"
}
Package: opengenaitelemetry
llm-traceguardllm-traceguardis an open-source Python library that provides Open Telemetry integration with Large Language Models (LLMs). It is designed to facilitate tracing and safeguarding applications that leverage LLMs, ensuring better monitoring and reliability.FeaturesEasy integration with Open Telemetry for LLM applications.Real-time tracing and monitoring of LLM-based systems.Enhanced safeguards and insights for your LLM applications.InstallationTo installllm-traceguard, simply use pip:pipinstallllm-traceguardUsage 🚀Here's a basic example of how to usellm-traceguardin your project:importllm_traceguardllm_traceguard.instrument()Requirements 📋Python 3.8 or higheropentelemetry-apiopentelemetry-sdkContributing 👐Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.License 📄llm-traceguardis licensed under the Apache-2.0 License. SeeLICENSEfor more details.Contact 📧For support or any questions, feel free to contact us atsupport@whylabs.ai.
Package: open-geodata
Open GeodataGitHub|PyPiOOpenGeodatatem como objetivo disponibilizar dados espaciais para pequenos projetos. A concepção é que ter os
dados localmente pode ser mais interessante (e barato!) que manter dados em servidores.Alguns dos dados básicos disponíveis no pacote são:geo.br_ibge.br_ibge: Limites dos Estadosgeo.sp.sp_050k_wgs84: Limites administrativos municipais do Estado de São Paulo em escala 1:50.000.geo.sp.sp_250k_wgs84: Limites administrativos municipais do Estado de São Paulo em escala 1:250.000.O projeto disponibiliza poucos dados, tendo em vista a limitação de 100mb do repositório oficialPyPi. É possível
acessar outros dados instalando pacotes adicionais listados nowiki/DadosPara mais informações, verWikiPara possibilitar testes do pacote, criei
umGoogle Colab.Todos osdatasetsestão comdatumWGS84 (EPSG: 4326).TODOEstudar mais oincrementalDefinir oslayerspara projetos apartadosEstudar a possibilidade de participnar dados, conforme mencionadoaqui!
Package: openget
opengetA Spider FrameWork.InstallationYou can install openget by simply doing:pip install opengetUsageVery Important ThingThis line must be the first line in codefrom openget.spiders import *About Environment Variable~/.openget/.env < $(pwd)/.envdocker buildcddocekr
bashbuild.shTODOftp downloadauto add taskstatis crawl speedbrowser support: zhipin.com tmall.comsqlite.db renameuse cmd to create spider template
Package: opengever.mysqlconfig
opengever.mysqlconfigopengever.mysqlconfigconfigures mysql as database used by ogds and
global index. The configuration bases onz3c.saconfig.ConfigurationUsername:opengeverPassword:opengeverDatabase:opengeverHostname:localhostEngine:mysqlEngine name:opengever.dbSession name:opengeverInstallationThere is a scriptcreate_database.sqlwhich creates a new the database
and grants access for the user on the database.Just run following command on your shell:$ cd src/opengever.mysqlconfig/opengever/mysqlconfig
$ mysql -uroot -p < create_database.sqlLinksMain github project repository:https://github.com/4teamwork/opengever.mysqlconfigIssue tracker:https://github.com/4teamwork/opengever.mysqlconfig/issuesCopyrightThis package is copyright by4teamwork.opengever.mysqlconfigis licensed under GNU General Public License, version 2.Changelog1.1.2 (2014-02-18)Moved package to GitHub.
[lknoepfel]1.1.1 (2013-08-14)Corrected initial database name.
[deif]1.1 (2012-11-28)Dropped Plone 4.1 compatibility. Only 4.2 and up are supported.
[lgraf]1.0.1 (2012-09-12)Added important configuration options in the mysql db conf and creation script.
[phgross]1.0 (2011-11-17)Initial release
Package: openghg-defs
openghg_defsThis repository contains the supplementary information / metadata around site, species and domain details. This is used within the OpenGHG project.InstallationNote thatopenghg_defsshould be installed in the same virtual environment as OpenGHG.
There are two ways of installingopenghg_defs, as an editable install of this git repository or via PyPI.Editable installIf you feel like you'll want to make changes to the metadata stored you should go for an editable install of the git repository. This will help ensure you always have the latest development changes we make to the repository. It also
means that you can make changes to your local copy of the metadata and see the results straight away in your
OpenGHG workflow.First, clone the repositorygit clone https://github.com/openghg/openghg_defs.gitNext, move into the repository and use pip to create an editable install using the-eflag.NOTE:If you're using OpenGHG, please installopenghg_defsin thesame virtual environment.cd openghg_defspip install -e .This will create a symbolic link between the folder and your Python environment, meaning any changes you make to
the files in the repository folder will be accessible to OpenGHG.Install from PyPIIf you don't think you'll need to make any changes to the metadata, you can installopenghg_defsfrom PyPI usingpip:pip install openghg-defsInstall from condaYou can also installopenghg_defsfrom ourcondachannel:pip install -c openghg openghg-defsUsageThe path to the overall data path and primary definition JSON files are accessible using:importopenghg_defsspecies_info_file=openghg_defs.species_info_filesite_info_file=openghg_defs.site_info_filedomain_info_file=openghg_defs.domain_info_fileUpdating informationWe invite users to update the information we have stored. If you find a mistake in the data or want to add something, pleaseopen an issueand fill out the template that matches your
problem.You're also welcome to submit a pull-request with your fix.
Package: opengit
DescriptionA simple command-line tool to open the remote repository of a local git repository. No set-up. No configuration.InstallationTheopengitpackage can be installed directly usingpip.pip install opengitUsageRunopengitfrom inside a local git repository. For example, when running from inside thefastapirepository:$ opengit
Opening https://github.com/tiangolo/fastapi.gitAlternatively, runopengiton a specified directory. For example when running on theuvicorndirectory:$ opengit uvicorn/
Opening https://github.com/encode/uvicorn.gitOptionsusage: opengit [-h] [directory]

positional arguments:
  directory   Specify a directory or leave empty for the current directory.

optional arguments:
  -h, --help  show this help message and exit
Package: open-github
Open GithubA simple script that opens a Github page from the command line.Installationpip install open-githubAfter installing you can make the package available in your path and bind it to any shortcut you want.alias og='/Users/${USER}/Library/Python/3.7/lib/python/site-packages/open_github_pkg/__init__.py'https://pypi.org/project/open-github/UsageNavigate to any directory with a github repository and run the alias you have assigned to the script.Example:ogThis will open your browser with the appropiate Github repository homepage.As well, running with the flag-vwill simply print the url to the console.og -vDeployingIn order to deploy package the following tools are needed, pip, sdist & twine.Bump versionIn thesetup.pybump version of package.Generate distribution archivepython3 setup.py sdist bdist_wheelThis command should output a lot of text and once completed should generate two files in the dist directory.Upload the distrubution packagepython3 -m twine upload dist/*If you need to use the development environment simply use:python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*Reference:https://packaging.python.org/tutorials/packaging-projects/https://packaging.python.org/overview/
Package: opengov
OpenGovRegularly-maintained centralized datahub for the Open Government Initiative.Free software: MIT licenseDocumentation:https://opengov.readthedocs.io.FeaturesOpenGov is maintained weekly. It was last updated on 07/29/2020.OpenGov is a hub for raw and processed data collected from various departments and government agencies participating in the Open Government initiative.Data scientists, researchers, and developer no longer need to scrape the internet hunting data for your time critical projects.Download OpenGov, save your time, go change the world!AuthorBrandon JinLinkedIn: www.linkedin.com/in/brandon-jinHistory0.1.0 (2020-07-29)First release on PyPI.
Package: opengovpy
opengovpy is a simple Python wrapper aroundMoscow open data apiIt works as follows: you create a class instance ofapi,
then call it with parameters:from opengovpy import api

# You may specify your api key when instantiating this
# like this using ``key`` argument: example = api(key='yourapikey')
example = api()

# To get dataset list (http://api.data.mos.ru/Docs#datasetsList):
dataset_list = example()

# To ged dataset passport (http://api.data.mos.ru/Docs#datasetPassport)
dataset_passport = example(id=658)

# To get dataset rows (http://api.data.mos.ru/Docs#datasetRows)
dataset_rows = example(id=658, rows=True)

# To count number of rows in a dataset ()
dataset_rows = example(id=658, count=True)

# To get geodata (http://api.data.mos.ru/Docs#datasetFeatures):
dataset_features = example(id=1786, features=True)

# It is also possible to specify coords to look up:
dataset_features = example(id=1786, features=True,
                              bbox=[37.49711036682129, 55.86543869723485, 37.5490379333496, 55.89110103788533])

# You may specify OData parameters supported by api (http://api.data.mos.ru/Docs#OData)
# like this:
dataset = example(id=658, rows=True, top=3, orderby='Number')
dataset = example(skip=10, inlinecount=True, top=5)The returned value is always a python object (deserialized json, with accordance tothis table).
This package works with Python 2.7+InstallationYou can install opengovpy via pip:$pipinstallopengovpy
Package: opengpt
OpenGPTA framework for creating grounded instruction based datasets and training conversational domain expert Large Language Models (LLMs).NHS-LLMA conversational model for healthcare trained using OpenGPT. All the medical datasets used to train this model were created using OpenGPT and are available below.Available datasetsNHS UK Q/A, 24,665 question and answer pairs, Prompt used: f53cf99826, Generated via OpenGPT using data available on theNHS UK Website. DownloadhereNHS UK Conversations, 2,354 unique conversations, Prompt used: f4df95ec69, Generated via OpenGPT using data available on theNHS UK Website. DownloadhereMedical Task/Solution, 4,688 pairs generated via OpenGPT using GPT-4, prompt used: 5755564c19. DownloadhereAll datasets are in the/datafolder.Installationpip install opengptIf you are working with LLaMA models, you will also need some extra requirements:pip install ./train_requirements.txtHow toWe start by collecting a base dataset in a certain domain. For example, collect definitions of all disases (e.g. fromNHS UK). You can find a small sample datasethere. It is important that the collected dataset has a column namedtextwhere each row of the CSV has one disease definition.Find a prompt matching your use case in theprompt database, or create a new prompt using thePrompt Creation Notebook. A prompt will be used to generate tasks/solutions based on thecontext(the dataset collected in step 1.)Edit the config file for dataset generation and add the appropirate promtps and datasets (example config file).Run the Dataset generation notebook (link)Edit thetrain_configfile and add the datasets you want to use for training.Use thetrain notebookor run the training scripts to train a model on the new dataset you created.More Examples
Package: opengraph
OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification athttp://ogp.me/Installationpip install opengraphFeaturesUse it as a python dictInput and parsing from a specific urlInput and parsung from html previous extractedHTML outputJSON outputUsageFrom an URL>>> import opengraph
>>> video = opengraph.OpenGraph(url="http://www.youtube.com/watch?v=q3ixBmDzylQ")
>>> video.is_valid()
True
>>> for x,y in video.items():
...     print "%-15s => %s" % (x, y)
...
site_name       => YouTube
description     => Eric Clapton and Paul McCartney perform George Harrison's "While My Guitar Gently Weeps" at the...
title           => While My Guitar Gently Weeps
url             => http://www.youtube.com/watch?v=q3ixBmDzylQ
image           => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg
video:type      => application/x-shockwave-flash
video:height    => 224
video           => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1
video:width     => 398
type            => videoFrom HTML>>> HTML = """
... <html xmlns:og="http://ogp.me/ns#">
... <head>
... <title>The Rock (1996)</title>
... <meta property="og:title" content="The Rock" />
... <meta property="og:type" content="movie" />
... <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
... <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
... </head>
... </html>
... """
>>> movie = opengraph.OpenGraph() # or you can instantiate as follows: opengraph.OpenGraph(html=HTML)
>>> movie.parser(HTML)
>>> video.is_valid()
TrueGenerate JSON or HTML>>>
>>>
>>>
Package: opengrapher
Opengrapherutility for parsing the Open Graph tags from url(read more about the specification athttp://ogp.me/)Installation$pipinstallopengrapherUsage>>>importopengrapher>>>opengrapher.parse('https://www.imdb.com/title/tt0110912'){"url":"https://www.imdb.com/title/tt0110912","title":"Pulp Fiction (1994) - IMDb","type":"video.movie","image":"https://m.media-amazon.com/images/M/MV5BNGNhMDIzZTUtNTBlZi00MTRlLWFjM2ItYzViMjE3YzI5MjljXkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_UY1200_CR97,0,630,1200_AL_.jpg","description":"""Directed by Quentin Tarantino.  With John Travolta, Uma Thurman,Samuel L. Jackson, Bruce Willis. The lives of two mob hitmen,a boxer, a gangster and his wife, and a pair of diner banditsintertwine in four tales of violence and redemption.""",}List of parsing tags is stored in PARSE_TAGS constant>>>fromopengrapherimportPARSE_TAGS>>>PARSE_TAGS["url","title","type","image","description"]You can pass a specific list of tags toparsefunction if you want:>>>importopengrapher>>>custom_tags=['url','title']>>>opengrapher.parse('https://www.imdb.com/title/tt0110912',parse_tags=custom_tags){"url":"https://www.imdb.com/title/tt0110912","title":"Pulp Fiction (1994) - IMDb",}Note that all tags will be transformed to "og:{tag}" format, as it stated in opengraph notation
Package: opengrapher-useragent
Opengrapherutility for parsing the Open Graph tags from url(read more about the specification athttp://ogp.me/)Installation$pipinstallopengrapherUsage>>>importopengrapher>>>opengrapher.parse('https://www.imdb.com/title/tt0110912'){"url":"https://www.imdb.com/title/tt0110912","title":"Pulp Fiction (1994) - IMDb","type":"video.movie","image":"https://m.media-amazon.com/images/M/MV5BNGNhMDIzZTUtNTBlZi00MTRlLWFjM2ItYzViMjE3YzI5MjljXkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_UY1200_CR97,0,630,1200_AL_.jpg","description":"""Directed by Quentin Tarantino.  With John Travolta, Uma Thurman,Samuel L. Jackson, Bruce Willis. The lives of two mob hitmen,a boxer, a gangster and his wife, and a pair of diner banditsintertwine in four tales of violence and redemption.""",}List of parsing tags is stored in PARSE_TAGS constant>>>fromopengrapherimportPARSE_TAGS>>>PARSE_TAGS["url","title","type","image","description"]You can pass a specific list of tags toparsefunction if you want:>>>importopengrapher>>>custom_tags=['url','title']>>>opengrapher.parse('https://www.imdb.com/title/tt0110912',parse_tags=custom_tags){"url":"https://www.imdb.com/title/tt0110912","title":"Pulp Fiction (1994) - IMDb",}You can also pass a custom user-agent header to be used when fetching the url,
in the event that the site blocks generic python-requests user-agent strings:>>>importopengrapher>>>user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246">>>opengrapher.parse('https://www.imdb.com/title/tt0110912',user_agent=user_agent){"url":"https://www.imdb.com/title/tt0110912","title":"Pulp Fiction (1994) - IMDb",}Note that all tags will be transformed to "og:{tag}" format, as it stated in opengraph notation
Package: opengraph-parse
opengraph_parseBen Jacobson 2020Parses Open Graph meta tags of web pages. Use this to generate previews of web pages.The purpose of this is to make it easy to scrape a pages opengraph meta tags. This is helpful if you ever want to create a preview of a web page like you'd see when you post to social media, or post a link on Slack.Uses Python >=3.6.9Installationpip install opengraph_parseUsagefrom opengraph_parse import parse_pageifname== "main":
# parse the page
parsed_og_tags = parse_page("http://www.facebook.com", ["og:url", "og:image", ])# result is a python dict containing the opengraph tags, simply print them out, or use a for loop to iterate over these. 
for key, value in parsed_og_tags.items():
    print (f"'{key}' : '{value}'")
Package: opengraph_py3
OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification athttp://ogp.me/Note : This repository has only porting related changes and was basically created to make these changes available on PyPi.Installation$pipinstallopengraph-py3.6FeaturesUse it as a python dictInput and parsing from a specific urlInput and parsung from html previous extractedHTML outputJSON outputUsageFrom an URL>>>importopengraph>>>video=opengraph.OpenGraph(url="http://www.youtube.com/watch?v=q3ixBmDzylQ")>>>video.is_valid()True>>>forx,yinvideo.items():...print"%-15s=>%s"%(x,y)...site_name       => YouTube
description     => Eric Clapton and Paul McCartney perform George Harrison's "While My Guitar Gently Weeps" at the...
title           => While My Guitar Gently Weeps
url             => http://www.youtube.com/watch?v=q3ixBmDzylQ
image           => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg
video:type      => application/x-shockwave-flash
video:height    => 224
video           => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1
video:width     => 398
type            => videoFrom HTML>>>HTML="""...<html xmlns:og="http://ogp.me/ns#">...<head>...<title>The Rock (1996)</title>...<meta property="og:title" content="The Rock" />...<meta property="og:type" content="movie" />...<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />...<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />...</head>...</html>...""">>>movie=opengraph.OpenGraph()# or you can instantiate as follows: opengraph.OpenGraph(html=HTML)>>>movie.parser(HTML)>>>video.is_valid()TrueGenerate JSON or HTML>>>ogp=opengraph.OpenGraph("http://ogp.me/")>>>printogp.to_json(){"image:type": "image/png", "title": "Open Graph protocol", "url": "http://ogp.me/", "image": "http://ogp.me/logo.png", "scrape": false, "_url": "http://ogp.me/", "image:height": "300", "type": "website", "image:width": "300", "description": "The Open Graph protocol enables any web page to become a rich object in a social graph."}>>>printogp.to_html()<meta property="og:image:type" content="image/png" />
<meta property="og:title" content="Open Graph protocol" />
<meta property="og:url" content="http://ogp.me/" />
<meta property="og:image" content="http://ogp.me/logo.png" />
<meta property="og:scrape" content="False" />
<meta property="og:_url" content="http://ogp.me/" />
<meta property="og:image:height" content="300" />
<meta property="og:type" content="website" />
<meta property="og:image:width" content="300" />
<meta property="og:description" content="The Open Graph protocol enables any web page to become a rich object in a social graph." />
Package: opengraph-writer
opengraph_writerAboutThis library was created to both manage writing OpenGraph data, and perform
lightweight verifications for offline debugging.This library does the following:CREATE an object to stash OGP dataVALIDATE the data, offering debug information on the objectRENDER the object as html, and optionally include debug data on incorrect elementsThis is currently aimed at "single object page data". It is not necessarily
with multi-value items yet (such as multiple profiles or tracks on a single page).Most of the validation routines were derived from regexing thehttps://ogp.mesite into a Python dict, and researching what they are supposed to do.
The validation routes themselves are super trivial.At the time of initially writing this library, and several checks ever since, the
specification on  thehttps://ogp.meseems out of date.In practice, Facebook's "premier" partners seem to all be using URLs which point
to certain data , however there aren't any guidelines for this within the
public OGP spec.An example would be on the Spotify integration: when looking at aSONG, theARTISTandALBUMrefer to URLs which contain the relevant data.DocumentationThe Python file contains extensive inline documentation.Contributions Welcome!If anyone wants to fork and tackle the multiple value problem, please do.Framework Support: PyramidThis package offers an includeme for Pyramid to set up anopengraph_itemas a@reifyrequest method.Simply update your application:config.include("opengraph_writer.pyramid_helpers")And yourRequestobjects will be extended as such:request.opengraph_item
Package: opengridview
An application insipired by PowerShell’sOut-GridView.Implemented on Gnome using GTKInput is passed via STDIN or via filenames in argument. Every file is assigned a window and a thread in charge of reading that file and parsing it.Also check out my post on it:http://blog.backslasher.net/open-gridview.htmlPrerequisitesSince we rely on Gtk, we need the python GTK bindings (PyGobject). Compiling it as a Python package is annoying, so it’s better to install the Distro-provided package (e.g. in Ubuntu -python-gi)Basic usageEither pipe input, or supply it as files.Default parser is autosplit (re.split) with\s+as separatorChange parser with–parserChange separator where applicable using–separatorColumn names are usually inferred from input. Use–headersto override.Columns can be discarded by specifying an empty name, like–headers important,,alsoColumn types are usually inferred from first item in input. If overriding headers, follow a name with colons to force a specific type, like–headers col,othercol:int,thirdcolParsingThese different types of input formatting are currently supported:autosplit(default), which usesre.splitto create different columns from every row.Default separator is\s+which is good for space-separated items.Separator can contains capturing groups forinteresting resultscsv, with configurable column separatorsline_json, where every line is considered a single JSON object (Line delimited JSON)Items are displayed immediately when parsedAdditional featuresClipboard support. Copies as CSV to allow easy pasting in spreadsheet softwareSimple text filteringTODOact as pipeline middle (and not just terminator), meaning that you can select items and click “OK” to make it send the items to STDOUTSupport advanced filtering (e.g. regex, specific columns)Support hiding and re-ordering columnsshow progress icon when stdin isn’t EOF yet