Saravanan666/pypi-org huggingface dataset:
Package: divlibgithub3apps
github3apps.pyThis project is an extension to thegithub3.pyproject, with the purpose of enablingGitHub Applicationdevelopment.Using this library developers can access all of the special App endpoints as well as pull out agithub3.pyclient authenticated by a specific installation.UsageConnect to Github as ApplicationTo connect you need to pass the app id and the location of your app's private key.fromgithub3appsimportGithubAppgha=GithubApp(app_id,path_to_private_key)gha.set_user_agent('MyApp')gha.get_app()List Available InstallationsThis returns the list of installations IDs available to your application.fromgithub3appsimportGithubAppgha=GithubApp(app_id,path_to_private_key)installation_ids=gha.get_installations()Get Repositories Available to InstallationThis returns the list of repositories available to your specific installation.fromgithub3appsimportGithubAppgha=GithubApp(app_id,path_to_private_key)installation=gha.get_installation(installation_id)installation.get_repositories()Communicate with Github API as InstallationThis returns agithub3.pyclient already authenticated against a specific installation.fromgithub3appsimportGithubAppgha=GithubApp(app_id,path_to_private_key)installation=gha.get_installation(installation_id)gh=installation.get_github3_client()
Package: divo
divoDivoom Pixoo and Divoom Timebox Evo python controller, packet builder/parser and image renderer.This project aims to fully implement controlling everything the Pixoo can do.This project is pretty muchwork in progressRequirementsPython 3.7+Poetry (pip install poetry)Install dependencies using poetry:poetryinstall--no-rootExamplesHints:make sure to install the requirements firstyou need a terminal that can render the colors to see the images properlyadd--send --mac-address 11:75:58:xx:xx:xxto send these packets to your Pixooadd--debugfor debug outputthere are a lot of tests demo'ing most of the Pixoo modes in the sub-commandtestyou can also install divo as a package withpoetry installand then use the installeddivocommand in place ofpoetry run divoSend image file (16x16 px):poetryrundivoimg--send--mac-address11:75:58:xx:xx:xxtest.pngMudkip (source):poetryrundivoraw01860044000a0a04aa7f00f40100080000004dbbef2989c8c1c3c5ff9f00ffffff1f1f30bf5c1500002001000000002402000000002402000000004402000000904409000000922449b00140922449b20d64d22469420e64e22471420e27e32471c80ff89b2449ff0d00d6b6adb60d00a06d92b40d00a06d89a40100106d89a401001049893400512802This gives the following output:Mudkip (eyes closed):poetryrundivoraw01860044000a0a04aa7f00f40100080000004dbbef2989c8c1c3c5ff9f001f1f30bf5c15ffffff00000000000000002001000000002402000000002402000000004402000000904409000000922449006c40922449826d64922449426e64da2469436e2693264d486fb09f24c9ed6d00f6ffbfb66d00a06d92a40d00106d89a401001049893400142702Nyan Cat:poetryrundivoraw01e40044000a0a04aadd00f401001212173dffffffff0000000000293268ffaa00f193ed7b757bffff02e547da00ff005b585b00aaff6b74b2aa01ff909eddc1d9f2a5e6ff0004000000000000000000000000000000004000420821c618638c4108214208314a29659432c820a594518a31e38c31c619a594518c31e39c73ce1908a1518c49e38471c21808a1519231e38c71c6184aa9518c31c39cb38e194aa9518a49e3ac75d6198c31364a29658c31c6688c3176c618638c735a6bce39b7d67befbdb5de7bce39f7de7befbdf7c27b1042082184104218608031400821841042080384515d02Palette 4 color test:poetryrundivoraw015a0044000a0a04aa5300f4010004000000ff0000ff5500ffffffe40000c0000000300000000c000000030000c0000000300000000c000000030000c0000000300000000c000000030000c0000000300000000c00000003000000dc0c02Palette 8 color test:poetryrundivoraw01860044000a0a04aa7f00f4010008000000ff0000ff5500ffaa00ffff02adff0000ff00ffffff88c6fa0000e000000000001c000000008003000000007000000000000e00000000c001000000003800000000000700000000e000000000001c000000008003000000007000000000000e00000000c00100000000380000000000070000000000ee1602DevelopmentBuild DependenciesInstall dependencies and pre-commit hooks:# you may need to install the following tools outside of your virtualenv, too:pipinstallpoetrypre-commit
poetryinstall--no-root
poetryrunpre-commitinstall
Package: divopt
divopt下の方に日本語の説明がありますOverviewoptimization tools based on domain divisiondescription is under construction.Usage# Trisectional Convex Optimization [divopt].divopt=load_develop("divopt","../",develop_flag=True)dim_n=50# Generate an example of the function to be optimized [divopt].func=divopt.gen_example_func(ans=[0.3for_inrange(dim_n)],# Vector of optimal values (answers)direction="maximize"# Maximize / Minimize)# Optimize [divopt].res=divopt.optimize(func=func,# Function to be optimizeddim_n=dim_n,# Number of dimensions of inputlim_range=[(0,1)for_inrange(dim_n)],# Range of each axisfin_judge=["rep",500],# Termination condition (specify: [mode, value])direction="maximize"# Maximize / Minimize)# debugprint(res)# Determine optimality [divopt].flag=divopt.is_optimal(func=func,# Function to optimizex=res,# the solution to be testeddelta=0.02,# tolerancedirection="maximize"# Maximize / minimize)# debugprint(flag)# Objective function according to optuna's IFdeftarget_func(trial):x=[]foriinrange(dim_n):x.append(trial.suggest_float("param_%d"%i,0,1))returnfunc(x)# optuna-like interfaceoi=divopt.optuna_interfacestudy=oi.create_study(direction="maximize")study.optimize(target_func,n_trials=500)print(study.best_params)概要領域分割に基づく最適化ツール説明文は書きかけですUsage# 3分凸最適化 [divopt]importdivoptdim_n=50# 最適化対象関数の例を生成 [divopt]func=divopt.gen_example_func(ans=[0.3for_inrange(dim_n)],# 最適値(答え)のベクトルdirection="maximize"# 最大化 / 最小化)# 最適化 [divopt]res=divopt.optimize(func=func,# 最適化対象関数dim_n=dim_n,# 入力の次元数lim_range=[(0,1)for_inrange(dim_n)],# 各軸の範囲fin_judge=["rep",500],# 終了条件 (指定: [mode, value])direction="maximize"# 最大化 / 最小化)# debugprint(res)# 最適性判断 [divopt]flag=divopt.is_optimal(func=func,# 最適化対象関数x=res,# 検査したい解delta=0.02,# 許容誤差direction="maximize"# 最大化 / 最小化)# debugprint(flag)# optunaのIFに合わせた目的関数deftarget_func(trial):x=[]foriinrange(dim_n):x.append(trial.suggest_float("param_%d"%i,0,1))returnfunc(x)# optuna様インターフェースoi=divopt.optuna_interfacestudy=oi.create_study(direction="maximize")study.optimize(target_func,n_trials=500)print(study.best_params)
Package: divspl
divspl (Dustin Ingram’s Very Special Programming Language)An implementation of a FizzBuzz DSL usingrply.Descriptiondivsplis an interpreter for the DIVSPL DSL (Dustin Ingram’s Very Special
Programming Language Domain Specific Language), which is used for implementing
FizzBuzz-like programs. For more information, seehttp://promptworks.com/blog/the-fastest-fizzbuzz-in-the-west.Installation$ pip install divsplOr for local development:$ virtualenv env
$ source env/bin/activate
$ python setup.py installUsage$ divspl [filename]Where:filename            A *.divspl filename to executeExampleUse the interpreter to execute valid DIVSPL code:$ divspl fizzbuzz.divsplOr use it as a shebang:#!env/bin/divspl
1...15
fizz=3
buzz=5Then:$ ./fizzbuzz.divsplCompiling with RPythondivsplis compatible withRPython. To
compile:$ pip install rply
$ mkdir -p pypy
$ wget https://bitbucket.org/pypy/pypy/get/default.tar.bz2
$ tar -xvvf default.tar.bz2 -C pypy --strip-components=1
$ mkdir -p bin
$ python pypy/rpython/bin/rpython --output=bin/divspl divspl/target.pyYou now have a compileddivsplbinary in./bin, which you can use as
follows:$ bin/divspl fizzbuzz.divsplContactOn PyPI:http://pypi.python.org/pypi/divspl/Source:https://github.com/di/divsplIssues:https://github.com/di/divspl/issues
Package: divsufsort
divsufsort-pythonPython bindings forlibdivsufsort.Getting StartedInstall from pip.pip install divsufsortImport the module and call itsdivsufsortfunction.>>>fromdivsufsortimportdivsufsort>>>divsufsort(b'The quick brown fox jumps over the lazy dog')(9,39,15,19,34,25,3,30,0,36,10,7,40,33,2,28,16,42,32,1,6,20,8,35,22,14,41,26,12,17,23,4,29,11,24,31,5,21,27,13,18,38,37)The function receives a bytes-like object,b, and returns the corresponding
suffix-array, that is a tuple of integersrsuch thatlen(r) == len(b)andb[r[i]:] < b[r[i+1]:]for alli.
Package: divvy-data
Divvy DataAboutDivvy Data is a package to access historical and live Chicago bikeshare data.I used this data to blog aboutChicago  biking and data visualization. See my analysis notebook onnbviewer.Set uppip install divvy-dataUsageHistorical Dataimportdivvydata# gather historical data over all yearsrides,stations=divvydata.get_historical_data(years=[str(yr)foryrinrange(2013,2019)],rides=True,stations=True)Live Dataimportdivvydatasf=divvydata.StationsFeed()df=sf.monitor_event_history(runtime_sec=60)# also saves to sf.event_history attribute# filter to stations that received interactionsdf=df.loc[df['id'].duplicated(keep=False)]Data Usage LimitationsThis package does not host or directly provide data, except as cited in analysis notebooks. When using Divvy data, followDivvy's Data License Agreement.
Package: dixa
Python Dixa SDKA Python implementation of the Dixa API.InstallationInstall the package with pippipinstalldixaUsage/ExamplesInitializationfromdixaimportDixaClientclient=DixaClient(api_key="<DIXA_API_KEY>")Getting user data# Get users by id, email or phoneuser_by_id=client.get_end_users(user_id="abcd1234")user_by_email=client.get_end_users(email="john.doe@example.com")user_by_phone=client.get_end_users(phone_number="+447357000000")# Get all usersall_users=client.get_all_end_users()Upload bulk user datafromdixaimportUser,UserListuser1={"displayName":"John Doe","email":"john.doe@example.com","middleNames":["Bob","Patrick"]}user2={"givenName":"Juan","familyName":"Perez","displayName":"Juan Perez","phoneNumber":"+447777000000"}users=UserList(data=[User(**user1),User(**user2)])client.post_end_users_bulk(user_list=users)Create a TeamfromdixaimportTeamclient.post_team(team=Team(name="New Team"))FeaturesGet users and agents by id, email or phone.Upload, patch and modify users and agents.Bulk upload of users.Get agents' presence.Activate and deactivate tags.Ported EndpointsAgentsGET /v1/agents/presenceGET /v1/agents/{agent_id}/teamsGET /v1/agents/{agent_id}/presencePOST /v1/agents/bulkGET /v1/agentsPUT /v1/agentsPOST /v1/agentsPATCH /v1/agentsGET /v1/agents/{agent_id}PUT /v1/agents/{agent_id}POST /v1/agents/{agent_id}PATCH /v1/agents/{agent_id}End UsersPOST /v1/endusers/bulkGET /v1/endusers/{user_id}PATCH /v1/endusers/{user_id}GET /v1/endusersPUT /v1/endusersPOST /v1/endusersPATCH /v1/endusersPUT /v1/endusers/{enduser_id}TeamsGET /v1/teamsPOST /v1/teamsGET /v1/teams/{teamId}/agentsGET /v1/teams/{teamId}/presenceGET /v1/teams/{team_id}DELETE /v1/teams/{team_id}DELETE /v1/teams/{team_id}/agentsPATCH /v1/teams/{team_id}/agentsConversationsPUT /v1/conversations/{conversationId}/closePUT /v1/conversations/{conversationId}/reopenPUT /v1/conversations/{conversationId}/transfer/queuePOST /v1/conversations/{conversationId}/notes/bulkPOST /v1/conversations/{conversationId}/notesGET /v1/conversations/{csid}/ratingPUT /v1/conversations/{conversationId}/tags/{tagId}DELETE /v1/conversations/{conversationId}/tags/{tagId}GET /v1/conversations/{csid}/tagsPOST /v1/conversations/{conversationId}/messagesPOST /v1/conversationsPUT /v1/conversations/{conversationId}/claimGET /v1/conversations/{csid}GET /v1/conversations/{csid}/activitylogGET /v1/conversations/activitylogQueuesGET /v1/queues/{queue_id}/membersDELETE /v1/queues/{queueId}/membersPATCH /v1/queues/{queueId}/membersGET /v1/queuesPOST /v1/queuesGET /v1/queues/{queue_id}TagsGET /v1/tags/{tagId}GET /v1/tagsPOST /v1/tagsPATCH/v1/tags/{tagId}/deactivatePATCH /v1/tags/{tagId}/activateReferenceREST API ReferenceHistoryv0.1.0AddedDixa Client.Models:User,UserList,Tag,TagList,Team,TeamList,Presence,PresenceList.Methods:get_end_usersget_all_end_userspost_end_userpost_end_users_bulkput_end_userpatch_end_userget_agentsget_all_agentsget_agents_presenceget_agent_teamsget_tagspatch_tagget_teamsget_team_agentsget_team_presencepost_teamdelete_team
Package: dixeam-mysql
A sample Python projectA sample project that exists as an aid to thePython Packaging User
Guide'sTutorial on Packaging and Distributing
Projects.This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.The source for this project is available here.Most of the configuration for a Python project is done in thesetup.pyfile,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.This is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: dixi
# Dixi - Deep Dictionaries for Python## Installation```bashpip install dixi```## Examples```pythonfrom dixi import Dixidata = Dixi({'Chris': {'age': 25,'address': {'city': 'Amsterdam','country': 'Netherlands',},},'Anna': {'age': 19,'address': {'city': 'Zürich','country': 'Switzerland',},},'John': {'age': 44,'address': {'city': 'London','country': 'United Kingdom',},},})```### Deep indexing```pythondata['John', 'age']# >> 44```### Partial indexing```pythondata['Chris', 'address']# >> {'city': 'Amsterdam', 'country': 'Netherlands'}```### NumpPy style slicing```pythondata[:, 'address', 'country']# >> Dixi({'Chris': 'Netherlands', 'Anna': 'Switzerland', 'John': 'United Kingdom'})data[['Chris', 'Anna'], 'age']# >> {'Chris': 25, 'Anna': 19}```### Setting```pythondata['Derek', 'hobbies'] = ['Sewing', 'Archery']```### Iteration```pythonfor key in data: # or key in data.leafkeys()print(key)# >> ('Chris', 'age')# >> ('Anna', 'age')# >> ('Anna', 'address', 'city')# >> ('Anna', 'address', 'country')# >> ('John', 'age')# >> ('John', 'address', 'city')# >> ('John', 'address', 'country')# >> ('Derek', 'hobbies')``````pythonfor key in data.keys():print(key)# >> Chris# >> Anna# >> John# >> Derek``````pythonfor key, value in data.items():print(key, value)# >> Chris {'age': 25}# >> Anna {'age': 19, 'address': {'city': 'Zürich', 'country': 'Switzerland'}}# >> John {'age': 44, 'address': {'city': 'London', 'country': 'United Kingdom'}}# >> Derek {'hobbies': ['Sewing', 'Archery']}``````pythondata = Dixi({0: {  0: 'a', 1: 'b' },1: { 0: 'c', 1: 'd' },})for keys, value in data.iterleaves():print(keys, value)# >> (0, 0) a# >> (0, 1) b# >> (1, 0) c# >> (1, 1) d```### Deletion```pythondel data['Chris', 'address']```## Todo* Allow indexing for arrays
Package: diyanet
DiyanetPython interface for internal API of Turkey's Presidency of Religious
Affairs to get prayer times.APIUnitsGeographicUnit, base class for all geographic units. All units share these membersidx:int=> Internal ID (to use in API)name:str=> Name of the countryCountry, unit for countriesState, unit for states (if no states present in given country, this will be same withCountry)country:Country=> A link to it's countryRegion, unit for citites/regionsurl:str=> URL that points out to prayer times page for that specific regionstate:State=> A link to it's statecountry:Country=> A link to it's countryPrayerTimes, unit for prayer times of a dayfajr:timesunrise:timedhuhr:timeasr:timemaghrib:timeisha:timeAPIAll methods described below are members ofDiyanetclassget_countries:() -> Iterator[Country]=> Iterates through all available countriesget_states:(country: Country) -> Iterator[State]=> Iterates through all available statesget_regions:(state: State) -> Iterator[Region]=> Iterates through all available regionsget_country/get_state/get_region=> Takes aname(and depending on the context, a geographical unit that covers itself) and returns if it finds something that matches with given name. If there isn't any match, it raises aValueError.get_times:(region: Region) -> PrayerTimes=> Returns prayer times for the current day
Package: diycrate
diycratebox.com for linuxInstallation on Ubuntusudoaptinstalllibffi-devlibssl-devpython3-pip# you may want to create a virtual environmentsudopython3setup.pyinstallConfigurationInstallation will create an empty ~/.config/diycrate/box.ini
This file will be overwritten and will contain run time specific information!Self-signed CertificateCurrently, in order for your machine to operate as a listener/hook against the oauth2 process with Box, you will
have to run a webserver -- which we provide for you in this application, to handle all of that, automatically.However, in order for your browser (and your sanity), you will want to create a certificate. When running on your
local  machine/localhost, you will need to create a self-signed certificate.Let's Encrypt has a nice write-up on how to do that:https://letsencrypt.org/docs/certificates-for-localhost/#making-and-trusting-your-own-certificatesInstall RedisThis application requires the use of redis oauth2 credential "storage" as well as meta data for the caching & states
of files against box.sudoaptinstallredis-serverRun the appCurrently there is no default out-of-the-box working configuration file. This is partly due to currently (should the user not setup their own) usingdiycrate.xyz(I host it) for a part of the oauth2 dance. It isn't "hard" to setup your own, nor is it hard to use the "always running, you can plug into" mine, but it's not exactly documented.diycrate_app--cacert_pem_path/path/to/cert.pem--privkey_pem_path/path/to/privkey.pemRundiycrate_app --helpfor more CLI information
Package: diy-django
http://diy-django.readthedocs.orgFeatures:Email as Usernamehttp://diy-django.readthedocs.org/en/latest/emailauth.htmlAJAX File Upload Widget with Progresshttp://diy-django.readthedocs.org/en/latest/ajaxupload.htmlMarkdownhttp://diy-django.readthedocs.org/en/latest/markdown.html
Package: diz
diz目前开源的大模型项目普遍来说都有如下问题：安装环境复杂，需要安装大量依赖包，而且依赖包版本之间有冲突，导致安装失败模型往往存放在 huggeface 上，下载速度慢，且不符合国情，使用 git lfs 也不方便本项目重点解决上述 2 个问题，提供一个简单的模型下载和使用的框架，方便大家快速使用。
总结一句话来说就是：目标就是干出一个大模型的 homebrew。安装pipinstalldiz系统依赖：tmuxgitgit lfs使用使用 install 来安装模型dizinstallChatGLM2-6B--path/root/autodl-tmp/chatglm2当前支持对的模型有：ChatGLM2-6B--path如果不填写，程序会提醒你输入，如果填写了，程序会自动创建目录使用 setup 来使用自定义配置安装模型dizsetup根据提示输入你要安装的目录和配置文件的 url 即可
配置文件写法可参考：ChatGLM2-6B也可以一句话安装：dizsetup--path/root/autodl-tmp/chatglm2--pkghttps://gist.githubusercontent.com/mjason/a616dcb8f9fd09fb2c7fb18ff3bb6279/raw/bb530a7d4101edf8aa474883d1f54a6aef58bc44/chatglm2-6b.yml使用 venv 来进入虚拟环境dizvenv检查当前目录是否存在venv目录存在就进入虚拟环境diz shell进入虚拟环境，如果使用diz shell --auto-venv进入的同时会执行diz venv进入虚拟环境diz shell --mode o退出虚拟环境，环境进入后台diz shell --mode k退出虚拟环境，环境进入后台，且 kill 掉原来的进程你也可以使用Ctrl + b d来退出虚拟tmux环境，让任务在后台运行路线图提供 install 命令，统一安装源提供 venv 指令，快速进入对应的虚拟环境提供 generate 命令，根据生成本地模型调用代码
Package: dizbot
dizbotA command line tool to seamlessly build discord bots in pythonHow to installRunpip install dizbotNote: Requires python version 3 or moreHow to useGo into the directory you want to have the bot code inRun commanddizbot runand walk through the prompts to add commands and event handlers and create the botAdd your bot's client token in theclient_token.txtfile if you didn't already add it through the CLIRunpython3 bot.pyand test out your bot!dizbot saves your bot's configurations intodizbot_config.jsonfile and reads from it if you rundizbot runagaindizbot also appendsdizbot_config.jsonandclient_token.txtto your.gitignoreto make sure that you do not accidently push sensitive info to github or other websitesAfter dizbot generates the python code, you can add more code to it!The python file generated by the bot after going through the CLI shown in the demo gif:fromdiscord.extimportcommandsbot=commands.Bot(command_prefix='>')@bot.command()asyncdeftest(ctx,*args):awaitctx.send('hi test!')@bot.command()asyncdefping(ctx,*args):awaitctx.send('pong!')@bot.eventasyncdefon_member_join(member):channel=awaitmember.create_dm()awaitchannel.send('Hello new member!')f=open('client_token.txt','r')print('Running the bot...')bot.run(f.read())
Package: dizqueTV
dizqueTV-pythonA Python library to interact with adizqueTVinstanceInstallationFrom GitHubClone repository withgit clone https://github.com/nwithan8/dizqueTV-python.gitEnter project folder withcd dizqueTV-pythonInstall requirements withpip install -r requirements.txtFrom PyPiRunpip install dizqueTVSetupImport theAPIclass from thedizqueTVmoduleEx.from dizqueTV import API

dtv = API(url="http://localhost:8000")Enable verbose logging by passingverbose=Trueinto theAPIobject declarationUsageDocumentation available onReadTheDocsExceptionsMissingSettingsError: The kwargs you have provided to create a new object (ex.ChannelorPlexServer) are incompleteMissingParametersError: You did not provide a required parameter in your function call (ex. provide a PlexAPI Server when adding PlexAPI Video to a channel)NotRemoteObjectError: The object you are calling this method on is a locally-created object that does not exist on the dizqueTV serverChannelCreationError: An error occurred when creating a Channel objectContactPlease leave a pull request if you would like to contribute.Join the dizqueTV Discord server (link onproject page). My Discord username isnwithan8#8438Follow me on Twitter:@nwithan8Also feel free to check out my other projects here onGitHubor join the #developer channel in my Discord server below.
Package: dizz
dizzAn extremely fast Python SQL formatter, written in Rust.DevelopingCreate a new virtual environment and install the dependencies:python3-mvenv.venvsource.venv/bin/activate
pipinstall-rrequirements.txtThen you can run thematurintool (which should be installed):maturindevelopThis will build the Rust code and install the Python package within the virtual environment. Allowing you to open up a python console and import the package:>>>importdizz>>>dizz.fmt_sql("SELECT * FROM foo")'SELECT\n*\nFROM\nfoo'