Saravanan666/pypi-org huggingface dataset:
Package: sentry-wxwork
Sentry WeChat WorkPlugin forSentrywhich allows sending notification and SSO Login viaWeChat Work.InstallationNOTE:sentry 20.x removed support for legacy plugins, so this plugin only works for sentry 9.x-10.x.PrepareInstall the plugin:onpremise: putsentry-wxworktorequirements.txtmanual:pip install sentry-wxworkObtain required config from WeChat Work admin console (Read Me).NotificationOn (Legacy) Integrations page, findWeChat Work, enable and configure it.SSO LoginAdd the following settings to yoursentry.conf.py:WXWORK_CORP_ID=''WXWORK_SECRET=''WXWORK_AGENT_ID=''or, if you prefer setting it via environment variables:if'WXWORK_CORP_ID'inos.environ:WXWORK_CORP_ID=env('WXWORK_CORP_ID')WXWORK_SECRET=env('WXWORK_SECRET')WXWORK_AGENT_ID=env('WXWORK_AGENT_ID')
Package: sentry-wxwork-starit
Sentry plugin for WxWorkSupport WxWork, Modify from sentry-googlechat, Thanks Jonhnny Weslley.How will it look likeRequirementsSentry 10.0.0 or newerInstallationIn yourrequirements.txtfile, add the below package name to install the WxWork Plugin.sentry-wxwork-staritRestart your Sentry instance:docker-compose restartConfigurationGo to your Sentry web interface and openSettingspage of one of your projects. Locate the Integrations management screen and click 'Configure Plugin' below the 'sentry-wxwork-starit' item.Create a new Incoming Webhook bot in WxWork and paste the URL into the Webhook URL field, then click 'Save Changes'.
There are some other optional configuration options at the moment, but the WebHook URL is the only required field.When ready, click 'Test Plugin' to generate an exception and send a message to your chosen WebHook URL.LicenseMIT License. Copyright (c) 2022 , Thanks Jonhnny Weslley.
Package: sentry-yach
Sentry-YachSentry的Yach通知插件安装pipinstallsentry-yach使用在当前项目的所有集成页面找到Yach插件，启用，并设置URL和Secret Key在插件上使用Test Plugin进行测试，当配置好相关参数后，在群内会得到如下通知点击detail按钮，打开异常详情页面。
Package: sentry-yach-plugin
Sentry-YachSentry的yach通知插件安装$pipinstallsentry-yach使用在项目的所有集成页面找到Yach插件，启用，并设置Access Token在插件上使用Test Plugin进行测试，当配置好Access Token后，在 yach 群内会得到以下警告点击href按钮，打开异常详情页面。
Package: sentry-youtrack
A Sentry plugin which creates YouTrack issues from sentry events and allows to assign an existing YouTrack issues to sentry event groups.InstallInstall the package viapip:pip install sentry-youtracksentry-youtrack>= 0.3.0supportsSentry 8.x.sentry-youtrack< 0.3.0supportsSentry 7.x.ConfigurationGo to your project’s configuration page (Projects -> [Project]) and select the YouTrack tab.
Enter the required credentials and save changes. Filling out the form is a two-step process
(one to fill in credentials, one to configure project).If you want to useYouTrackinstance without valid ssl certificate add the following line to thesentryconfig file:YOUTRACK_VERIFY_SSL_CERTIFICATE = FalseScreenshotsDocker ComposeSee detailshere.
Package: sentry-zabbix
An extension for Sentry to send event counts to Zabbix; shamelessly based onsentry-statsd.
This will send keys formatted like<prefix>.<level>[<project>](e.g.sentry.error[my-thing]), which will need to be configured as items in Zabbix.If you run a Sentry version older than 8, use sentry-zabbix <=0.0.13InstallInstall the package withpip:pip install sentry-zabbixConfigurationGo to your project’s configuration page (Projects -> [Project]) and select the
“Zabbix” tab. Enter the Zabbix host, port and prefix for metrics:After installing and configuring, make sure to restart sentry-worker and sentry-web for the
changes to take effect.
Package: sentry-zendesk
Plugin for Sentry which allows linking Zendesk tickets to Sentry issuesDISCLAIMER: Sentry API under development andis not frozen.
Therefore this plugin is not guaranteed to work with all Sentry versions. Currently it is being
tested against versions8.11, 8.12, 8.13, 8.14.FeaturesCurrently this plugin offers very basic functionality:Manually link a Sentry issue to an existing Zendesk ticketAutomatically create a Zendesk ticket of typeproblemwhen a new event arrivesAutomatically create a Zendesk ticket of typeincidentwhen a recurrent event arrives. In this case, there must be a problem linked to the Sentry issue when the event arrives.LimitationsSome features present on similar plugins (e.g. Jira) are not implemented yet for
Zendesk. For example, the following are currentlynot possible:Manually create a new Zendesk ticket through the UI buttonCustomize fields of automatically created tickets. Most fields are left blank and the ones that are filled are automatically generated.Add comment to the Zendesk ticket when it is linked to a Sentry issueInstallationUsing pip:pipinstallsentry-zendeskor from source:pythonsetup.pyinstallThen restart the sentry server. Please note that sentry is composed by multiple
processes.Make sure you restart all of themor at least the web and workers
processes.If you are usingdocker-composewithonpremiserepo you probably can just
add sentry-zendesk torequirements.txtand restart all services.History
Package: sent-sim-embedding
3 分钟了解如何进入开发欢迎使用 Codeup，通过阅读以下内容，你可以快速熟悉 Codeup ，并立即开始今天的工作。提交文件首先，你需要了解在 Codeup 中如何提交代码文件，跟着文档「提交第一行代码」一起操作试试看吧。开启扫描开发过程中，为了更好的管理你的代码资产，Codeup 内置了「代码规约扫描」和「敏感信息检测」服务，你可以在代码库设置-集成与服务中一键开启，开启后提交或合并请求的变更将自动触发扫描，并及时提供结果反馈。代码评审功能开发完毕后，通常你需要发起「代码合并和评审」，Codeup 支持多人协作的代码评审服务，你可以通过「保护分支」策略及「合并请求设置」对合并过程进行流程化管控，同时提供 WebIDE 在线代码评审及冲突解决能力，让你的评审过程更加流畅。编写文档项目推进过程中，你的经验和感悟可以直接记录到 Codeup 代码库的「文档」内，让智慧可视化。成员协作是时候邀请成员一起编写卓越的代码工程了，请点击右上角「成员」邀请你的小伙伴开始协作吧！更多Git 使用教学、高级功能指引等更多说明，参见Codeup帮助文档。
Package: senzing-abstract
g2-sdk-python-abstract:warning: WARNING: g2-sdk-python-abstract is still in development :warning: _At the moment, this is "work-in-progress" with Semantic Versions of0.n.x.
Although it can be reviewed and commented on,
the recommendation is not to use it yet.SynopsisThe Senzingg2-sdk-python-abstractpackage contains the abstract base class from which
implmentations of the Senzing Python SDK are derived.OverviewUseReferencesDevelopmentErrorsExamplesg2-sdk-python-abstract package reference
Package: senzing-grpc
g2-sdk-python-grpcIf you are beginning your journey withSenzing,
please start withSenzing Quick Start guides.You are in theSenzing Garagewhere projects are "tinkered" on.
Although this GitHub repository may help you understand an approach to using Senzing,
it's not considered to be "production ready" and is not considered to be part of the Senzing product.
Heck, it may not even be appropriate for your application of Senzing!:warning: WARNING: g2-sdk-python-grpc is still in development :warning: _At the moment, this is "work-in-progress" with Semantic Versions of0.n.x.
Although it can be reviewed and commented on,
the recommendation is not to use it yet.SynopsisThe Senzingg2-sdk-python-grpcpackage provides a Python Software Development Kit
adhering to the abstract classes ofg2-sdk-python-abstractthat communicates with aSenzing gRPC server.OverviewThe Senzingg2-sdk-python-grpcpackages enable Python programs to call Senzing library functions
across a network to aSenzing gRPC server.Theg2-sdk-python-grpcpackage implements the followingg2-sdk-python-abstractinterfaces:G2ConfigAbstractG2ConfigMgrAbstractG2DiagnosticAbstractG2EngineAbstractG2ProductAbstractOther implementations of theg2-sdk-python-abstractinterface include:g2-sdk-python-next- for
calling Senzing SDK APIs nativelyUseThe following example shows how to start a Senzing gRPC server Docker container
and access it using thesenzing_grpcPython package.Install thesenzing-grpcPython package.
Example:python3 -m pip install --upgrade senzing-grpcRun a Senzing gRPC service using Docker.
Example:docker run \--env SENZING_TOOLS_COMMAND=serve-grpc \--env SENZING_TOOLS_DATABASE_URL=sqlite3://na:na@/tmp/sqlite/G2C.db \--env SENZING_TOOLS_ENABLE_ALL=true \--name senzing-tools-serve-grpc \--publish 8261:8261 \--pull always \--rm \senzing/senzing-toolsNote:In this example,SENZING_TOOLS_DATABASE_URLspecifies a fileinsidethe container.
Thus the database is temporal and will be deleted when the container is killed.In a separate window, start an interactive Python session.
Example:python3Paste the following into the interactive Python session.
Example:importgrpcfromsenzing_grpcimportG2ProductGrpcg2_product=G2ProductGrpc(grpc_channel=grpc.insecure_channel("localhost:8261"))print(g2_product.version())More can be seen inExamples.ReferencesDevelopmentErrorsExamplesg2-sdk-python-abstract package reference
Package: seoaudit
SEOAuditSEO tool for analyzing a set of urls, crawls the pages and audits a set of predefined checks element, page and site
tests on them.Main featuresPython3 CLI script with JSON (and soon HTML) reportsPython3 APITests configurable and parameterizedWhy yet another SEO tool?SEO (Search Engine Optimization) is a set of activities with a goal to
increase organic traffic from search engines to the website.
On-page SEO (as oppsed to off-site SEO) is a set of on-page optimizations such as optimization of the HTML tags used,
content quality, speed, etc.SEOaudit is anon-site SEO toolthat differs to other SEO tools i na way that
it iscompletely configurable,interoperableinto development environment either as a CLI
script or through its API usage and it iscompletely free!RequirementsPython 3.6+ and modulesrequests,lxml,nltk,extruct,selenium.InstallationTo install run:pip install seoaudit.Using CLIFor analyzing a single site with default checks run withseoaudit -u URL, e.g.:seoaudit -u https://green-light.agency.To define extra urls just add anotheru URLargument:seoaudit -u https://green-light.agency -u https://milenial.eu.To use custom python checks config file (e.g. config.py) use option-c PYTHON_MODULE:seoaudit -u https://green-light.agency -c config.To parse sitemap.xml for extra urls to parse add-p:seoaudit -u https://green-light.agency -p.DocumentationExtra documentation including API documentation and examples on extending the module with custom checks:SEOAudit documentation.
Package: seolib
Seolib is a small python library that allows you to get
SEO metrics of your websites with no pain.DocumentationComming soon. Sorry.Example how to use>>>importseolib>>>alexa_rank=seolib.get_alexa('http://google.com')>>>printalexa_rank1>>>printseolib.get_google_plus('http://google.com')9999Metrics availableGoogle +1 countAlexa RankTweets countFacebook likes countSemRush Top 20 keywords countSeoMoz.org free API data (Page Authority, Domain Authority)InstallationTo install seolib open terminal and type:$pipinstallseolibNote that it will install requests and lxml libraries too.
Windows users can get vcvarsall.bat error while installing lxml library,
just download it manually fromhttp://www.lfd.uci.edu/~gohlke/pythonlibs/
Package: seo-meow
Seo-Meow is a very simple Django app to manage basic SEO tags.https://github.com/utekay/seo-meowInstallation$ pip install git+https://github.com/utekay/seo-meow.git# settings.py

INSTALLED_APPS = [
    ...
    'seomeow',
]$ python manage.py migrate seomeowUsageThe app looks for the SeoMeow object that matches the current URL.
Otherwise it returns the object for “/” which is created automatically.{% load seomeow %}

<!DOCTYPE html>
<html lang="en">
  <head>
    ...
    {% put_seo_meow_tags_here %}
    ...Also you can ‘assign’ the SeoMeow object to any model instance via
Django admin interface. A hyperlink for editing or creating a related
SeoMeow object will be available in the message area after mixin class
is added to the admin model.# admin.py

from django.contrib import admin
from seomeow.admin import SeoMeowShortcut

from .models import News

@admin.register(News)
class NewsAdmin(SeoMeowShortcut, admin.ModelAdmin):
    ...The model method “get_absolute_url” is required in this case.# models.py

from django.db import models
from django.core.urlresolvers import reverse

class News(models.Model):
    ...

    def get_absolute_url(self):
        # return "/news/%d/" % self.pk # or
        return reverse("news", args=(self.pk,))
Package: seometa
SEO Meta-DataThis a python module that helps you get SEO data on any website, you have to import it in your script and your good to goInstallationUse the package managerpipto install foobar.pipinstallseometaUsageimportthreadingfromseometaimportSEO,read_txtdefget_sublists(original_list,number_of_sub_list_wanted):# sublisting to use Threadssublists=list()forsub_list_countinrange(number_of_sub_list_wanted):sublists.append(original_list[sub_list_count::number_of_sub_list_wanted])returnsublistsdefworker(websites,file_name):forwebsiteinwebsites:seo_keywords=SEO(website)# init the object eg. website = 'google.com'seo_keywords.run(path=f'{file_name}.csv')# run the process by giving the save filedefmain():websites=read_txt('website.txt')# Reading websites from a text folefile_name=input('File: ')n=int(input('Threads: '))all_websites=get_sublists(websites,n)threads=[]forwebsite_listinall_websites:t=threading.Thread(target=worker,args=[website_list,file_name])threads.append(t)forthreadinthreads:thread.start()forthreadinthreads:thread.join()ContributingPull requests 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.LicenseMIT
Package: seos
SeosSimple Extractor on Sheets (or SEOS) is an extraction tool focused on Google Sheet data scraping. It uses Google's Python API client to access those data; this allows the library to access on a lower level functions defined by Google without the need of using another Sheets abstraction.FeaturesSeos features are put below and their status if they're well-tested using PyTest.FeatureStatusConnection to a Google Sheet given an OAuth credentials file and Sheet IDExtraction on a sheet with a defined scopeSheet name switchingInstallation# if using poetry# highly recommendedpoetryaddseos# also works with standard pippipinstallseosGetting StartedSeos uses APIs defined by Google to access Sheets data; but the idea is that developing with Seos should be understandable when connecting to a data and changing contexts; e.g. change in Sheet Name or change in scope.The initial step would be to pass a credentials file and the sheet ID as an entrypoint to the data. It assumes that you have a credentials file taken fromGoogle CloudinJSON format.fromseosimportSeosextractor=Seos(credentials_file="./credentials.json"spreadsheet_id="<SPREADSHEET-ID>")Once an extractor context is created, we can then define thesheet nameandscopethen executing extract if you're happy with the parameters.extractor.sheet_name="Report - June 1, 1752"extractor.scope="A1:D1"extractor.extract()With this, changing the scope and the sheet name will act as a cursor for your sheet data. We can get anything from the sheet just by changing the scope.extractor.sheet_name="Report - June 1, 1752"extractor.scope="A1:D"# get all from A1 until end of column Dextractor.extract()We can even do sheet switching if necessary for data that contains several contexts.extractor.sheet_name="Report - June 1, 1752"extractor.scope="A1:D"extractor.extract()extractor.sheet_name="Report - June 2, 1752"extractor.scope="B5:G5"extractor.extract()
Package: seotools
SEOtools 🛠️A set of utilities for SEOs and web developers with which to complete common tasks.With SEOtools, you can:Programatically add links to related posts in content.Calculate PageRank on internal links from your sitemap.Identify broken links on a web page.Recommend a post to use as canonical for a given keyword.Find the distance of pages from your home page.And more!Installation 💻You can install SEOtools using pip:pipinstallseotoolsQuickstart 🚀Create a link graphfromseotools.appimportAnalyzer# load from disk will load the link graph from disk if it has already been created# otherwise, a new link graph will be createdanalyzer=Analyzer("https://jamesg.blog/sitemap.xml",load_from_disk=True)Get pagerank of a URLprint(analyzer.pagerank["https://jamesg.blog"])Add relevant internal links to a web pageimportmarkdownarticle=markdown.markdown(BeautifulSoup(article.text,"html.parser").get_text())keyword_replace_count=0forkeyword,urlinkeyword_map.items():ifkeyword_replace_count>=MAX_KEYWORD_REPLACE:breakarticle=article.replace(keyword,f"<a href='{url}'>{keyword}</a>",1)keyword_replace_count+=1print(article)Recommend related content for a "See Also" sectionarticle=requests.get("https://jamesg.blog/...")article=markdown.markdown(BeautifulSoup(article.text,"html.parser").get_text())urls=analyzer.recommend_related_content(article.text)Check if a page contains a particular JSON-LD objectfromseotoolsimportpage_contains_jsonldimportrequestscontent=requests.get("https://jamesg.blog")print(page_contains_jsonld(content,"FAQPage"))Get subfolders in a sitemapanalyzer.get_subpaths()Get distance of URL from home pageanalyzer.get_distance_from_home_page("https://jamesg.blog/2023/01/01/")Retrieve keywords that appear more than N times on a web pagefromseotoolsimportget_keywordsimportrequestsfrombs4importBeautifulSouparticle=requests.get("https://jamesg.blog/...").textparsed_article=BeautifulSoup(article,"html.parser").get_text()# get keywords that appear more than 10 timeskeywords=get_keywords(parsed_article,10)See Also 📚getsitemap: Retrieve URLs in a sitemap. (Web interface)License 📝This project is licensed under anMIT license.
Package: seoul
Python API client library forSeoul Open Data Plaza (서울 열린데이터 광장).ExamplesRealtime subway position>>>fromseoulimportClient>>>seoul=Client()>>>trains=seoul.get_subway_realtime_position('6호선')>>>fortrainintrains:...print(f"{train.subway_name}{train.number}번 열차 @{train.station_name}")...6호선6265번열차@화랑대(서울여대입구)6호선6271번열차@이태원6호선6277번열차@불광Realtime city air quality>>>fromseoulimportClient>>>seoul=Client()>>>measurements=seoul.get_air_realtime_city()>>>forminmeasurements:...print(f"AQI @{m.region_name}{m.station_name}:{m.index_value}")......AQI@도심권중구:55.0...AQI@도심권종로구:55.0...AQI@도심권용산구:53.0...AQI@서북권은평구:51.0...AQI@서북권서대문구:43.0Supported APIs서울시 지하철 실시간 열차 위치정보서울시 권역별 실시간 대기환경 현황
Package: seoul256-jupyterlab-theme
seoul256_jupyterlab_themeA JupyterLab theme with Seoul 256 color schemeRequirementsJupyterLab >= 4.0.0InstallTo install the extension, execute:pipinstallseoul256_jupyterlab_themeUninstallTo remove the extension, execute:pipuninstallseoul256_jupyterlab_themeContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the seoul256_jupyterlab_theme directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstallseoul256_jupyterlab_themeIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedseoul256-jupyterlab-themewithin that folder.Packaging the extensionSeeRELEASEseoul256-jupyterlab-theme
Package: seoulai-gym
Seoul AI GymSeoul AI Gym is a toolkit for developing AI algorithms.Thisgymsimulates environments and enables you to apply any teaching technique on agent.Seoul AI Gym was inspired byOpenAI gymand tries to follow its API very closely.ContentsBasicsInstallationpip3From sourceEnvironmentsExamplesTestingBasicsThere are two terms that are important to understand:EnvironmentandAgent.An environment is a world (simulation) with which an agent can interact.
An agent can observe a world and act based on its decision.seoulai-gymprovides environments.
An example of creating environment:importseoulai_gymasgymenv=gym.make("Checkers")Every environment has three important methods:reset,stepandrender.reset(self) -> observationReset an environment to default state and returnobservationof default state.observationdata structure depends on environment and is described separately for each environment.step(self, agent, action) -> observation, reward, done, infoPerform anactionon behalf ofagentin environment lastly observed by eitherresetorstep.
Anactioncan differ among different environments but the return value ofstepmethod is always same.
Arewardis given to an agent when action that was done in the current step or some of the previous steps have led to a positive outcome for an agent (e.g winning a game).
Aninfois a dictionary containing extra information about performedaction.render(self) -> NoneDisplay state of game on a screen.InstallationThere are two ways to installseoulai-gym.pip3The recommended way for developers creating an agent is to installseoulai-gymusingpip3.pip3 install seoulai-gymFrom sourceYou can also clone and installseoulai-gymfrom source.
This option is for developers that want to create new environments or modify existing ones.gitclonehttps://github.com/seoulai/gym.gitcdgym
pip3install-e.Supported systemsseoulai-gymrequires to have at least Python 3.6 and was tested on Arch Linux, macOS High Sierra and Windows 10.EnvironmentsCurrently, environment simulating game ofCheckers, [Mighty] (https://en.wikipedia.org/wiki/Mighty_(card_game)), and Market are provided.Checkersimportseoulai_gymasgymenv=gym.make("Checkers")env.reset()env.render()Mightyimportseoulai_gymasgymfromseoulai_gym.envs.mighty.agent.RandomAgentimportRandomAgentenv=gym.make("Mighty")players=[RandomAgent("Agent 1",0),RandomAgent("Agent 2",1),RandomAgent("Agent 3",2),RandomAgent("Agent 4",3),RandomAgent("Agent 5",4)]obs=env.reset()obs["game"].players=[players[0]._name,players[1]._name,players[2]._name,players[3]._name,players[4]._name,]env.render()Marketimportseoulai_gymasgymfromseoulai_gym.envs.traders.agentsimportRandomAgentBuffett# make enviromentenv=gym.make("Market")# select exchangeenv.select("upbit")init_cash=100000000# KRWa1=RandomAgentBuffett("Buffett",init_cash)current_agent=a1env.reset()env.render()ExamplesCheckershttps://github.com/seoulai/gym/blob/master/examples/checkers_example.pyMightyhttps://github.com/seoulai/gym/blob/master/examples/mighty_example.pyMarkethttps://github.com/seoulai/gym/blob/master/examples/trader_example.pyTestingAll test are written usingpytest.
You can run them via:pytest