Saravanan666/pypi-org huggingface dataset:
Package: emby-exporter
emby_exporter.pyA prometheus exporter for emby written in Python 3.
The exporter scrapes emby's API and exposes prometheus metrics.
emby_exporter will call the API every 15 seconds by default, this can be adjusted through commandline arguments.Seegrafana_dashboard.jsonContentemby_exporter.pyContentMetricsSetuppipmanualDockerdocker-hubmanualUsageUsage ExampleMetricsinfolibrary_sizedevicesgenresproduction yearplayedfavouritesMetrics Example# HELP python_info Python platform information
    # TYPE python_info gauge
    python_info{implementation="CPython",major="3",minor="7",patchlevel="0",version="3.7.0"} 1.0
    # HELP emby_info emby info
    # TYPE emby_info gauge
    emby_info{id="5924731cb9904e3b9862475bad630a50",local_address="http://192.168.0.5:8096",operating_system="Linux",server_name="rpi3",version="3.5.2.0",wan_address="http://146.128.69.118:8096"} 1.0
    # HELP emby_library_size emby library size
    # TYPE emby_library_size gauge
    emby_library_size{type="movies"} 969.0
    emby_library_size{type="series"} 141.0
    emby_library_size{type="episodes"} 8873.0
    emby_library_size{type="albums"} 0.0
    emby_library_size{type="artists"} 0.0
    emby_library_size{type="songs"} 0.0Setuppippip3 install --upgrade emby_exportermanualgit clone https://github.com/dr1s/emby_exporter.py.git
cd emby_exporter.py
pip3 install -r requirements.txt
cd emby_exporter
./emby_exporter.pyDockerdocker-hubdocker pull dr1s/emby_exporter:latest
docker run --net=host -t dr1s/emby_exportermanualgit clone https://github.com/dr1s/emby_exporter.py.git
docker build -t dr1s/emby_exporter .
docker run -d -p 9123:9123 -t dr1s/emby_exporterUsageusage: emby_exporter.py [-h] [-e EMBY] [-p PORT] [-i INTERFACE] [-a AUTH]
                        [-u USERID] [-s INTERVAL]

emby_exporter

optional arguments:
  -h, --help            show this help message and exit
  -e EMBY, --emby EMBY  emby adress
  -p PORT, --port PORT  port emby_exporter is listening on
  -i INTERFACE, --interface INTERFACE
                        interface emby_exporter will listen on
  -a AUTH, --auth AUTH  emby api token
  -u USERID, --userid USERID
                        emby user id
  -s INTERVAL, --interval INTERVAL
                        scraping interval in secondsUsage Exampleemby_exporter --emby localhost:8069 --interface 0.0.0.0 --port 9123 --interval 15 --auth <emby_api_token> --userid <emby_user_id>The previous used arguements are the default options. All options are options except for the emby api token and userid.
Package: embykeeper
自动签到 定时保号 按需水群Embykeeper 是一个在中文社群规则下用于 Emby 影视服务器的签到和保号的自动执行工具, 基于 Pyrogram 编写并具有可拓展性.声明本项目涉及的一切 Emby 服务器与 Embykeeper 开发团队无关, 在使用 Embykeeper 时造成的一切损失 (包括但不限于 Emby 或 Telegram 账号被封禁或被群封禁) 与开发团队无关. 为了您的账号安全, 推荐使用小号.本项目设计初衷是在中文 Emby 社群规则下, 保号要求逐渐苛刻 (部分要求每月登录或每日签到), 这使得休闲时间紧张的人士难以安心使用. 本项目仅旨在帮助该类人群保号, 不鼓励持有大量 Emby 账号而不使用, 导致真正需要的人、为中文影视资源分享和翻译有贡献的人难以获得账号的行为, 开发团队也呼吁仅保留 1-2 个较全面质量较高的 Emby 服务器. 本项目仅提供工具, 具体使用形式及造成的影响和后果与开发团队无关.本项目欢迎友善讨论与建议, 您可以通过Github Issue途径反馈, 并认可开发团队可以关闭与项目开发不直接相关的不友善讨论. 您也可以通过Telegram 讨论群获得社区帮助.当您使用 "消息提示" 功能, 该工具时候将自动向 "Embykeeper Auth Bot" 发送关键的成功/失败日志以供从 "Embykeeper Bot" 向您推送, 日志内容不含任何密码或密钥信息, 您认可该命令不会给您带来隐私与安全问题.当您安装并使用该工具, 默认您已经阅读并同意上述声明, 并确认自己并非出于"集邮"目的而安装.功能Telegram 机器人签到卷毛鼠:频道群组机器人垃圾影音:群组机器人Pornemby:频道群组机器人默认禁用 (关服或无响应):EmbyHub:频道群组机器人终点站:频道群组机器人卡戎:频道群组机器人Peach:机器人魔法Emby:频道群组机器人Temby:频道群组机器人Misty:频道群组机器人BlueSea:群组机器人卷毛鼠 IPTV:频道群组机器人Nebula:频道群组机器人Singularity:频道群组机器人剧狗:频道机器人其他非 Emby 相关:搜书神器 (@chneez增加):机器人纸片 DDoS:频道机器人Emby 保活定时模拟账号登录视频播放播放时间与进度模拟Telegram 自动水群 (需要Embykeeper 高级用户, 默认使用内建话术列表, 易被辨别和封禁, 请谨慎使用)Pornemby:频道群组机器人内建话术列表默认禁用 (关服或无响应):NakoNako 自动水群:群组机器人Telegram 自动监控信息 (需要Embykeeper 高级用户)Pornemby (定制功能):科举考试:活动频道(可选的高准确云题库, 回答准确率 90% 以上)自动抢注:群组自动抢红包雨:群组不给看 抢邀请码:群组机器人Viper 抢邀请码:频道群组机器人Embyhub 开注自动注册:频道群组机器人默认禁用 (关服或无响应):全局自动从众: 当在任何群组中发现 5 分钟内 5 条一样内容的消息, 会自动跟一句 (影响范围大默认禁用)Polo 抢邀请码:频道群组机器人Misty 开注自动注册:频道群组机器人剧狗 开注自动注册:频道机器人安装与使用Embykeeper 支持 Docker 或 PyPI 安装 (Linux / Windows), 也支持云部署, 请点击下方按钮开始安装:若您没有服务器, 您可以通过免费的 Render 托管平台进行部署, 点击下方按钮开始部署:若您有服务器, 我们推荐使用Docker 部署:dockerrun-v$(pwd)/embykeeper:/app--rm-it--net=hostembykeeper/embykeeper您也可以使用Docker Compose 部署.除此之外, 您还可以通过PyPI 安装或源码构建.更多安装和配置方面的帮助请参考Wiki.注意: 请尽可能使用小号运行本工具, 运行该工具的 Telegram 账号若通过接码注册, 请使用一段时间再接入本工具.运行截图支持 Embykeeper开发者团队jackzzs通过爱发电赞助趋势
Package: embypyfix
# embypy
python wrapper for the emby rest api
[![Latest Version](https://img.shields.io/pypi/v/EmbyPy.svg)](https://pypi.python.org/pypi/EmbyPy)
[![Documentation](https://media.readthedocs.org/static/projects/badges/passing.svg)](http://embypy.readthedocs.io/en/latest/)
[![Build Status](https://travis-ci.org/andy29485/embypy.svg?branch=master)](https://travis-ci.org/andy29485/embypy)## Installing
Installation should be done through thepipcommand:` pip install-Uembypy `It is also possible to install via thesetup.pyfile:` python setup.py install `## Documentation
Documentation is availble at [Read the Docs](http://embypy.readthedocs.io/en/latest/).## Usage
To use you will need an [Emby](https://emby.media/) server and
an api key generated by that server.
Package: emby-updater
emby-updateremby-updater is a small tool to keep theEmby media serverup to date (even including beta-versions).Using emby-updaterAll in one binaryThe binary distribution is DEPRECATED, DON'T USEThanks toPyInstalleryou can download emby-updater without to care about any dependencies, because they are inbuilt to the binary.Justhead over to the releases pageand download the binary.Currently only Ubuntu 18.04+ (amd64) is supported.Python code for maximum flexibilityDo you want to control what is running on your system?Grab the Python code, install the dependencies and run or modify it :)Setupwith pipx (recommended)Install pipxsudo-i
aptupdate&&\aptinstall-ypython3-apt;\pipxinstall--system-site-packagesemby-updaterwith pip in the user environmentsudoaptupdate&&\sudoaptinstall-ypython3python3-pippython3-apt;\pip3install--useremby-updaterfrom binary distributionThe binary distribution is DEPRECATED, DON'T USE1. Go to thelatest release page.2. Download the binary distribution package to~/Downloads.3. make it executable withchmod +x ~/Downloads/emby-updater.4. move it to/usr/local/sbin.DEPRECATED--sudomv~/Downloads/emby-updater/usr/local/sbin/Usageusage: emby-updater.py [-h] [--beta] [-d DOWNLOAD_PATH] [--update] [--version]
                       [-y]

emby-updater will help you to install Emby (updates) easily.

optional arguments:
  -h, --help            show this help message and exit
  --beta                installs Emby beta versions
  -d DOWNLOAD_PATH, --download-path DOWNLOAD_PATH
                        set path for downloaded binaries
  --update              update the script itself if an update is available
  --version             show program's version number and exit
  -y, --yes             automatic yes to prompts. Assume "yes" as answer to
                        all prompts and run non-interactively. If an
                        undesirable situation, such as changing a held package
                        or removing an essential package, occurs then emby-
                        updater.py will abort.

This is an unofficial update tool for the Emby media server.
It's not supported through any official Emby Support.
emby-updater is proudly presented by Philip 'ShokiNN' Henning <mail@philip-henning.com>.emby-updater is licensed under MIT license.
Package: emcee
The Python ensemble sampling toolkit for affine-invariant MCMCemcee is a stable, well tested Python implementation of the affine-invariant
ensemble sampler for Markov chain Monte Carlo (MCMC)
proposed byGoodman & Weare (2010).
The code is open source and has
already been used in several published projects in the Astrophysics
literature.DocumentationRead the docs atemcee.readthedocs.io.AttributionPlease citeForeman-Mackey, Hogg, Lang & Goodman (2012)if you find this code useful in your
research. The BibTeX entry for the paper is:@article{emcee,
   author = {{Foreman-Mackey}, D. and {Hogg}, D.~W. and {Lang}, D. and {Goodman}, J.},
    title = {emcee: The MCMC Hammer},
  journal = {PASP},
     year = 2013,
   volume = 125,
    pages = {306-312},
   eprint = {1202.3665},
      doi = {10.1086/670067}
}LicenseCopyright 2010-2021 Dan Foreman-Mackey and contributors.emcee is free software made available under the MIT License. For details see
the LICENSE file.
Package: emc-pypi
Enhanced Monte Carlo (EMC) Python InterfaceThis module is a thin Python wrapper library of theEMCpackage that allows you to use all EMC functionalities with Python interface.EMC creates input structures from SMILES strings and LAMMPS input files for particle simulations with atomistic force fields - Born, COMPASS, PCFF, CHARMM, OPLS, TraPPE or coarse-grained force fields - DPD, Martini, SDK.See theexample input fileson how to prepare EMC input (.esh) files.See thedocsto understand more about EMC.The package works out of the box without pre-installation of EMC or any configuration. Please open an issue if you find something missing or not working as expected.Installationpipinstallemc-pypiUsageimportpyemc# Run the emc_setup.pl and generate the build.emc file for the build commandpyemc.setup('your-setup-file.esh')# Or you can pass in arguments like thispyemc.setup('your-setup-file.esh','-ntotal=1000','-field=opls-aa')# Finally, run the emc executable to create simulation input filespyemc.build('build.emc')ExampleExample input files are provided in theexample. Once installed, you can run the example by:cdexamplepythonexample.pyThe example.esh file creates a system with 80% m/m water and 20% m/m alcohol. More examples are availablehereCitationIn any publication of scientific results based in part or completely on the use of EMC, please cite the original paper:
P.J. in 't Veld and G.C. Rutledge, Macromolecules 2003, 36, 7358 [link] [pdf]
Package: emd
A python package for Empirical Mode Decomposition and related spectral analyses.Please note that this project is in active development for the moment - the API may change relatively quickly between releases!InstallationYou can install the latest stable release from the PyPI repositorypip install emdor clone and install the source code.git clone https://gitlab.com/emd-dev/emd.git
cd emd
pip install .Requirements are specified in requirements.txt. Main functionality only depends
on numpy and scipy for computation and matplotlib for visualisation.Quick StartFull documentation can be found athttps://emd.readthedocs.organd development/issue tracking at gitlab.com/emd-dev/emdImport emdimportemdDefine a simulated waveform containing a non-linear wave at 5Hz and a sinusoid at 1Hz.sample_rate=1000seconds=10num_samples=sample_rate*secondsimportnumpyasnptime_vect=np.linspace(0,seconds,num_samples)freq=5nonlinearity_deg=.25# change extent of deformation from sinusoidal shape [-1 to 1]nonlinearity_phi=-np.pi/4# change left-right skew of deformation [-pi to pi]x=emd.simulate.abreu2010(freq,nonlinearity_deg,nonlinearity_phi,sample_rate,seconds)x+=np.cos(2*np.pi*1*time_vect)Estimate IMFsimf=emd.sift.sift(x)Compute instantaneous frequency, phase and amplitude using the Normalised Hilbert Transform Method.IP,IF,IA=emd.spectra.frequency_transform(imf,sample_rate,'hilbert')Compute Hilbert-Huang spectrumfreq_range=(0,10,100)# 0 to 10Hz in 100 stepsf,hht=emd.spectra.hilberthuang(IF,IA,freq_range,sum_time=False)Make a summary plot

```python
import matplotlib.pyplot as plt
plt.figure(figsize=(16, 8))
plt.subplot(211, frameon=False)
plt.plot(time_vect, x, 'k')
plt.plot(time_vect, imf[:, 0]-4, 'r')
plt.plot(time_vect, imf[:, 1]-8, 'g')
plt.plot(time_vect, imf[:, 2]-12, 'b')
plt.xlim(time_vect[0], time_vect[-1])
plt.grid(True)
plt.subplot(212)
plt.pcolormesh(time_vect, f, hht, cmap='ocean_r')
plt.ylabel('Frequency (Hz)')
plt.xlabel('Time (secs)')
plt.grid(True)
plt.show()
Package: emdfile
emdfileEMD (Electron Microscopy Dataset) 1.0 is an HDF5 based file format which
is designed to carry arbitrary data and metadata.  An overview of the
file specification can be foundhere.emdfileis a Python package defining write and read functions and a set of
classes which together interface between EMD 1.0 files and Python runtime
objects.  The classes are designed to quickly build, save to, and read from
filetree-like representations of data and metadata, and is built on HDF5+h5py.InstallationRunpip install emdfileOr, to install from source code, you can clone this repository and from the
distribution level directory (i.e. where pyproject.toml lives) runpip install .Examples and syntaxFor a few simple examples...
((this is coming extremely soon ish!))For a longer, narrative intro example, seetutorials/emd_intro_example.ipynb.For a detailed walkthrough of the syntax, seetutorials/emd_package_walkthrough.ipynb.emdfileis designed to support I/O in downstream Python modules and packages.
Whentutorials/test_custom_classes.pyis run as a script, it makes, saves, loads, then prints the contents of the data carrying classes defined in thetutorials/sample_custom_emd_classesPython module.
Package: emdpy-z
Empirical Mode Decomposition, EMDInstallationpipinstallemdpy-zQuick Start# Importfromemdpy.emdimport*importnumpyasnp# Inputt=np.linspace(0,1,1000)modes=np.sin(2*np.pi*5*t)+np.sin(2*np.pi*10*t)y=modes+tx,y=t,y# EMDimfs,res,(mean,std)=emd(x,y,mode=0,ps=len(x),max_iter_num=20)# Plot the figsplot_imfs(imfs,res,col=1)
Package: emds
Author:Greg TaylorLicense:BSDThis project contains a set of data structures used to represent EVE Market
data. Also included are a set of serializers and de-serializers, dealing with
the common market formats. Currently, this is just
Unified Uploader Data Interchange Format (UUDIF).DocumentationDocumentation is located athttp://eve-market-data-structures.readthedocs.org/LicenseThis project, and all contributed code, are licensed under the BSD License.
A copy of the BSD License may be found in the repository.
Package: emdy
EmdyEmdy generates Markdown-formattted open source and Creative Commons licenses from your command line.Installationpipx (recommended)The recommended, cross-platform way of installing Emdy is viapipx.pipxinstallemdyHomebrew (macOS and Linux)AHomebrewformula for Emdy is available from
theHoukago Tea Tap.brewtapcelsiusnarhwal/htt
brewinstallemdypip (not recommended)Emdy can be installed via pip like any other Python package, but unless you're going to create a virtual environment
for it yourself, you're strongly recommeded to use pipx or Homebrew.pipinstallemdyUsageSimply invoke Emdy from the command line:emdyThat's it. Emdy will interactively guide you through the rest.DemonstrationsSee Emdy in action.Generating an MIT LicenseGenerating a CC BY-NC-SA 4.0 LicenseAcknowledgementsEmdy sources its Markdown-formatted licenses
fromIQAndreas/markdown-licensesandidleberg/Creative-Commons-Markdown.DisclaimerLicenses produced by Emdy have been modified from their original forms. I'm not responsible for any legal issues
arising from inconsistencies between Emdy's licenses and those they were derived from.LicenseEmdy is licensed under theMIT License.
Package: emek
stack overflow tag analysisThis project fetches StackOverflow API get questions and make tag analysisinstallpip install sosqpip install emekfor use1- Get your key and token from stackexchange (https://stackapps.com/users/login?returnurl=/apps/oauth/register)2- sample code below.import sosq
import emek
df = sosq.get_result("your_search_query", "your_key", "your_access_token")
emek.process_data(df)
Package: emeki
EmekiThis is my first python package published on PyPI.InstallationInstall as follows.$ pip install emekiAfter a successful installation, it can be run from
the command line:$ emekiPython command line tool project creationEmeki includes a command line tool for setting up a
project as a base for the implementation of a python command line tool
that can be installed viapip. Use the flag--init_proto run it:$ emeki --init_proIt will ask for the name of the author, the name of the
project and a directory, where the files will be put.
The files include the base structure of a python project
including documentation with Sphinx and testing functionality.
The main commands to run this project are collected in a PowerShell
scriptmake.ps1. Unfortunately there is not yet an Unix version available.Python libraryAlternatively, it can be used as a python library. It mainly provides
some functionality for coping with the file system and for
testing.fromemeki.utilimportstr2boolb=str2bool("true")print(b)TODOSome changes that are planned to be implemented in the future:Fix deprecation warning for project creationInlcude PyPI username specification during setup (and password saving?)
Package: emencia-cms-snippet
This is a “cms.plugins.snippet” (from djangocms) cloned to extend it with some facilities.Original code is from the originalDjangoCMSplugin.Changes from original codeThis clone try to change as few orignal code as possible, actually the differences are :Adding a template tag to directly use snippet fragments in the templates, not only from CMS pages;Add usage ofdjangocodemirrorfor the HTML editor;Add a slug field;RequiresDjango 1.4 to 1.6;DjangoCMSversion 2.3.6 to 3.0.x;djangocodemirror0.9.x;In the admin, the HTML content will be edited with thedjangocodemirroreditor.InstallThe only thing needed is to replace thecms.plugins.snippetin yourDjangoCMSsettings, like this :INSTALLED_APPS = (
    'cms',
    # Plugins
    ...
    #'cms.plugins.snippet',
    'snippet', # the snippet plugin clone
    'djangocodemirror', # the editor
    ...
)Then add :CODEMIRROR_SETTINGS = {
    'cms_snippet': {
        'mode': {'name': "jinja2", 'htmlMode': True},
        'lineWrapping': True,
        'lineNumbers': True,
        'search_enabled': True,
        'embed_settings': True,
        'add_jquery': True,
        'lib_buttons_path': 'djangocodemirror/snippet_buttons.js',
    },
}Because the code is cloned from the original plugin with just a few changes, all CMS stuff should work as with the original plugin, you should even add it in an existing install without loss in database and without any syncdb.UsageTemplate tagsUse the template tags in your templates :{% load snippet_tags %}
{% snippet_fragment [Snippet ID or slug or instance] %}Like this :{% load snippet_tags %}
{% snippet_fragment 42 %}Or with the slug :{% load snippet_tags %}
{% snippet_fragment 'my-snippet' %}The first argument is required, you can use eitherThe Snippet ID;The Snippet slug;The Snippet instance.Use as a template block with fallback :{% snippet_fragment 'my-snippet' or %}
    ... clumsy safe ...
{% endsnippet_fragment %}In case there is no snippet instance/id/slug, fallback template will be rendered.
Package: emencia-contact-form
Contact Form App================This is aimed to be a reusable app for our cookiecutter.Django CMS integration is provided.It add a generic contact form with some basic configuration made available via the admin.Install-------- create your virtualenv and `pip install -r requirements.txt`. For dev purposes, `pip install -r requirements-dev.txt`.- In your `INSTALLED_APPS`, add:```python'modeltranslation',  # translation within models...'django.contrib.site','django.contrib.sitemaps','django-countries',  # needed for the CountryField'crispy_forms',  # nice looking forms'crispy_forms_foundation','captcha','emencia_contact_form',````modeltranslation` should be placed on top of the installed apps.There is an automatic check which makes sure all of these apps are in INSTALLED_APPS.- captcha: signup for [recaptcha](https://github.com/praekelt/django-recaptcha) and follow their installation process on their repo. (adding RECAPTCHA_PUBLIC_KEY, RECAPTCHA_PRIVATE_KEY in your settings and so on..)- Add url(r'^', include('emencia_contact_form.urls')) in your urls.py- Ensure you're using foundation with crispyforms, in your settings, add:```pythonCRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap','uni_form','bootstrap3','bootstrap4','foundation-5',)CRISPY_TEMPLATE_PACK = 'foundation-5'```Configuration-------------- Site: in django Admin, rename the site by default. Ensure you have SITE_ID = 1 in your settings.py- You can then edit the ContactFormSettings in the admin to configure the email.- EMAIL BACKEND: on success, the contact form send an email. You need to have it configured to have it working properly. [Django Email Backend](https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-EMAIL_BACKEND)- sitemaps: A sitemap is available in contact_form/sitemaps.pyConfiguration on the django settings and url has to be done. [doc](https://docs.djangoproject.com/en/1.10/ref/contrib/sitemaps/)TEST & DEV----------There is requirements-dev.txt with pdb, django-extensions and pygraphviz.Run tests with the following command:`pytest`To create a new db while running tests: `pytest --create-db`The default behavior reuse the same db for performance reasons
Package: emencia-cookie-law
A Django app to easily integrate a banner about EU Cookie LawDisplay a HTML banner (or whatever you want if you override the template) to inform aboutEuropean Cookie Lawwith a link for more informations and another link to accept and continue to browse site. Once clicked the accept link push a cookie to the browser so the banner won’t never display again.LinksDownload hisPyPi package;Clone it on hisrepository;RequiresDjango>= 1.4;jQuery >= 1.2;jquery.cookie== 1.4.1;InstallFirst install the packagepip install emencia-cookie-lawAdd it to your installed Django apps in settings :INSTALLED_APPS = (
    ...
    'cookie_law',
    ...
)Now you will need to integrate it in your templates.Optional settingsCOOKIELAW_COOKIE_NAMEDefault toemencia_cookie_law.The cookie name pushed to the browser if the user click on the accept link. Note that this name is hardcoded in the shipped Javascript plugin, so if you change it you will have to code another plugin or duplicate it in your statics to override it and change its text.COOKIELAW_TEMPLATEDefault tocookie_law/banner.html.The filepath to the banner template. You should not really need to edit this settings to change the banner aspect, just override the template with the same relative filepath in your project templates directory.Templates integrationRecommended way is to have a basic file for all your project templates, often namedbase.htmlorskeleton.html, so you’ll just integratecookie_lawonly once.In your template(s), load the Javascript file:<script type="text/javascript" src="/static/js/cookie_law/cookie_law.js"></script>Don’t forgetjQueryandjquery.cookierequirements to be loaded before this plugin (if you are using Foundation, they are allready loaded).Load the the cookie_law tag library at top of your template:{% load cookie_law %}Then call its tag where you want, commonly as the first element in your<body/>content:{% cookie_law_banner %}Default template has been made with Foundation components, if you don’t use it or use another CSS Framework, you should override it see settingCOOKIELAW_TEMPLATE.Because the default template has been done for Foundation, there is no need of any CSS to load.UsageNothing special. The banner display until you accept the game from the button within the banner.Once accepted the browser is given a cookie so the user won’t see again the banner. The cookie lifetime expires in 10 years since accept.