Saravanan666/pypi-org huggingface dataset:
Package: pylira
A Python package for Bayesian low-counts image reconstruction and analysisLicenseThis project is Copyright (c) pylira developers and licensed under
the terms of the GNU GPL v3+ license. This package is based upon
theAstropy package templatewhich is licensed under the BSD 3-clause license. See the licenses folder for
more information.ContributingWe love contributions! pylira is open source,
built on open source, and we’d love to have you hang out in our community.Imposter syndrome disclaimer: We want your help. No, really.There may be a little voice inside your head that is telling you that you’re not
ready to be an open source contributor; that your skills aren’t nearly good
enough to contribute. What could you possibly offer a project like this one?We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one’s coding skills. Writing perfect code
isn’t the measure of a good developer (that would disqualify all of us!); it’s
trying to create something, making mistakes, and learning from those
mistakes. That’s how we all improve, and we are happy to help others learn.Being an open source contributor doesn’t just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you’re coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.Note: This disclaimer was originally written byAdrienne Lowefor aPyCon talk, and was adapted by
pylira based on its use in the README file for theMetPy project.
Package: pylisp
This package provides an implementation of LISP, the Locator/ID
Separation Protocol in Python. This is an experimental protocol
where the IP addresses on the network define the identity of
the systems and a separate mapping system determines how the
data is routed to that network.This library provides the means to parse and create LISP data
and control messages, as well as command line tools to perform
actions like asking a map resolver for a mapping and directly
querying a DDT node.The intention is that in a later stage implementations for a
map server, map resolver and DDT node will also be provided.
Package: pylistenbrainz
pylistenbrainzpylistenbrainzis a simple Python library for theListenBrainz Web API.pylistenbrainz will help you start getting data from and submitting data toListenBrainzvery quickly.Here's an example of getting the listening history of a ListenBrainz user::importpylistenbrainzclient=pylistenbrainz.ListenBrainz()listens=client.get_listens(username='iliekcomputers')forlisteninlistens:print("Track name:",listen.track_name)print("Artist name:",listen.artist_name)Here's another quick example of how to submit a listen to ListenBrainz::importpylistenbrainzimporttimeauth_token=input('Please enter your auth token: ')listen=pylistenbrainz.Listen(track_name="Fade",artist_name="Kanye West",release_name="The Life of Pablo",listened_at=int(time.time()),)client=pylistenbrainz.ListenBrainz()client.set_auth_token(auth_token)response=client.submit_single_listen(listen)More detailed documentation is available
atRead The Docs.Featurespylistenbrainz provides easy access to all ListenBrainz endpoints, handles
ratelimits automatically and supports the ListenBrainz authorization flow.For details on the API endpoints that can be used via pylistenbrainz, take
a look at theListenBrainz API Documentation.InstallationInstall or upgrade pylistenbrainz with:pip install pylistenbrainz --upgradeSupportYou can ask questions about how to use pylistenbrainz on IRC (freenode #metabrainz).
You can also email me atiliekcomputers [at] gmail [dot] com.If you have found a bug or have a feature request, let me know by opening an issue (or a pull request).Licensepylistenbrainz - A simple client library for ListenBrainz
Copyright (C) 2020 Param Singh <iliekcomputers@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

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

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: pylister
PylisterPylister is a tool that you can use to manage your projects through the terminal.It is pretty simple to use. You add projects to Pylister (no directories needed, only a name is enough), you can also add descriptions to these projects, and the main objective of Pylister is to store and manage the tasks that you create for these projects.InstallationNote: Python is required for installationpip install pylisterUsageNotes:You can use eitherpylisterorpyl<Option> is required, [Option] is optionalFor options that need more than one word, use quotation marks:--desc This is a description(Wrong)--desc "This is a description"(Right)To see what commands you can use:pylisterIf you want help for a specific command:pylister [COMMAND] --helpExample:pyl addp --help1 - Projects1.1 Listing Projectspylister list1.2 Viewing Project info(Can be used to show tasks and their IDs for a specific project)pylister show <Project Name>Example:pyl show pylister1.3 Adding Projectspylister addproject <Project Name> [--desc Description]Example:pyl addp pylister --desc "This is a description"1.4 Removing Projectspyproject rmproject <Project Name>Example:pyl rmp pylister1.5 Modifying Projectspylister set <Project Name> <name|description> <new>Examples:(For description)pyl set pylister description "This is a new description"(For name)pyl set pylister name "New Name"2 - Tasks2.1 Adding Taskspylister addtask <Project Name> <Task>Example:pyl addt pylister "Improve the readme"2.2 Removing Taskspylister rmtask <Project Name> <Task ID>Example:pyl rmt pylister 1
Package: pylistmanagement
pylistmanagementThis library has 3 functions with which you can manage lists or columns of dataframes.You can impute, operate and filter.InstallationUse the package manager pip to install pyimage.pipinstallpylistmanagementfrompylistmanagementimportpylistmanagementUsage1. impute(list1,method="zero")With this function all null values are found and imputed by the selected method.Parameters:list1: list-likeA list or a column of a dataframemethod: {"zero", "mean", "median"}, default "zero""zero"All null values are imputed by 0"mean"All null values will be imputed by the average of the list"median"All null values will be imputed by the median of the list.Returns:Returns the original imputed listExample:plm=pylistmanagement()plm.impute(list1,method="zero")2. column_operation(listas,method="concat")This function generates a new list with the selected method from all existing lists in the list of lists.Parameters:listas: list-of-listsA list of lists with 2 or more listsmethod: {"add", "subtract", "concat"}, default "concat""add"Add all lists"subtract"Subtracts all lists"concat"Concatenates all listsReturns:Returns the new created listExample:plm=pylistmanagement()plm.column_operation(listas,method="concat")3. filtering(dataf,list1,filter,method=="equal")This function filters a dataframe according to the selected method and filter.Parameters:dataf: dataframelist1:strThe name of a column of the dataframefilter: {strorint/float}Depending on the method,strinputs would not work on other method that's not "equal"method:  {"equal", "higher", "equal_higher", "lower", "equal_lower"}, default "equal""equal" : {str/int/float}Dataframe will be filtered by the previous selected filter"higher" : {int/float}Dataframe will be filtered by the previous selected filter."equal_higher" : {int/float}Dataframe will be filtered by the previous selected filter."lower" : {int/float}Dataframe will be filtered by the previous selected filter."equal_lower" : {int/float}Dataframe will be filtered by the previous selected filter.Returns:Returns the new filtered dataframeExample:plm=pylistmanagement()plm.filtering(dataf,list1,filter,method="equal")LicenseMITContributingPull 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.
Package: pylistmanager
pylistmanagerManage various kinds of lists saved as.csvfiles. So far the only type of
lists implemented are movie lists, managed by movielist. Other types of lists
are planned for the future.Installationpylistmanager requires Python 3 and has been tested with Python 3.5+. Test
results with earlier versions of Python are welcome. You can install all the
list managers contained in pylistmanager using pip.pip3 install pylistmanagermovielistmovielist is a program to manage...movie lists. Movies and their metadata are
saved in a.csvfile. movielist allows editing and printing that.csvfile.FeaturesAbility to store the name, release year, rating, tags and date watched for
movies in a.csvfile.Display list contents with pretty formatting.Add/edit/remove movie entries from a.csvfile.Display only movies matching certain tags.Import of movie lists from Letterboxd.csvfiles.Automatic generation of Letterboxd/Rotten Tomatoes URLs for each movie
(experimental).UsageYou can see the available commands by runningmovielist -hTo list all movies contained in a file runmovielist listThe default file isXDG_DATA_HOME/pymovielist/movies.csv(usually~/.local/share/pymovielist/movies.csv). You can specify a different file
using the-foption.To add/edit/remove a movie runmovielist add
movielist edit
movielist removerespectively. You will then be prompted to select a movie and/or enter the
movie details.To convert a Letterboxd format.csvfile into the native.csvformat runmovielist -f /path/to/letterboxd.csv convertCAUTION: the file will be converted in-place, overwriting the previous
contents.LicenseCopyright © 2018 Sotiris PapatheodorouThis program is Free Software: You can use, study share and improve it at your
will. Specifically you can redistribute and/or modify it under the terms of theGNU General Public Licenseas
published by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Package: pylit
Literate ProgrammingwithreStructuredTextThe idea is that you do not document programs (after the fact), but
write documents thatcontainthe programs.—John Max SkallerWhat is itPyLit (Python Literate) provides a plain but efficient tool for
literate programming: abidirectional text/code converter.InstallPutpylit.pyin Python’sModule Search Path.DocumentationPyLit pages.Copyright© 2005, 2009, 2022 Günter Milde.LicensePyLit isfree software, released under theGNU General Public License(GPL) version 3 or later.PyLit is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See theGNU General Public Licensefor more
details.
Package: pylit3
Seehttp://slott56.github.io/PyLit-3/index.htmlfor the complete documentation.TheMakefileis used viamake htmlto rebuild the code and documentation.Thedocsdirectory contains the documentation, plus many examples.Thepylit.pyis the module.  Once you’ve installed it, usepython-mpylitto run it.Thetestdirectory contains the unit test suite.Thecontribsdirectory are old contributed modules which have not yet been
converted to Python3.The code repository is:https://github.com/slott56/PyLit-3
Package: pylite
pyliteIntract with sqlite3 in python as simple as it can be.InstallpipinstallpyliteTipsImport pylite :frompyliteimportPyliteCreate a new database or open an existing database :db=Pylite('dbname')Add a table :db.add_table('table_name',column1='datatype',column2='datatype',...,columnN='datatype')Insert data :db.insert('table_name','column1_value','column2_value',...,'columnN_value')Remove items :db.remove('table_name','condition')Retrieve items :db.get_items('table_name','condition')Get all tables name :db.get_tables()Execute your sqlite queries:db.query('your query')Close connection :db.close_connection()
Package: pyliteadmin
PyLiteAdminPyLiteAdmin is a simple command-line tool for browsing and editing SQLite databases, written in Python. It provides a user interface for viewing tables, searching for data, and performing basic CRUD (Create, Read, Update, Delete) operations. All inside of the terminal thanks to theTextualframework.FeaturesUse a TUI (Terminal User Interface) to view your sqlite databaseSearch ColumnsDelete RowsAdd RowsEdit Cell valuesExecutable as "pyliteadmin /path/to/database.db"Add "paging" to ensure large databases are loaded and viewed efficientlyInstallationInstall via PyPipipinstallpyliteadminUsagepyliteadmin/path/to/database.dbThis will start the PyLiteAdmin interface, which consists of three main components:Table Selector: allows you to select a table from the database.Table Viewer: displays the contents of the selected table.Table Search: allows you to search for data within the selected table.You may need to expand your terminal window to make all of the elements fitUse the Table Selector on the top left side of the terminal window to select which table you would like to view.Use the "Search Column" widget on the bottom left side of the terminal window to search for a specific search term on the selected column. Returns a new table view with all matching/similar rows.ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.LicenseMIT License
Package: pylitejet
This project provides a pure Python3 library for interfacing with the LiteJet lighting system.SetupYou will need the LiteJet programming software from theDragon TechnologiesProgramming page.Your LiteJet MCP should be configured for 19.2 K baud.For firmware versions 5.00 and higher, this setting is configured using the LiteJet software's Settings screen.For firmware versions 4.90 and lower, this setting is configured by setting DIP Switch 4 to OFF. Press the RESET button after changing this.In the LiteJet software's Settings screen configure it to send "Third Party Carriage Return".In the LiteJet software's Lights screen configure each load to announce changes. This is the "Load RS232" checkbox on each load's middle panel.Connect the LiteJet's RS232-2 port to your computer.If you have LiteJet 48 then the RS232-2 port is used to connect the two boards together. So you will need to configure RS232-1 for third party mode by setting DIP Switch 8 to ON and DIP Switch 3 to OFF. Press the RESET button after changing this. (To change RS232-1 back to programming mode, set DIP Switch 8 to OFF.)TestList all buttons and loads:python3 ./test.py --path /dev/serial0 list -l -bMonitor button presses and load changes:python3 ./test.py --path /dev/serial0 monitorControl a load:python3 ./test.py --path /dev/serial0 load 1 onSampleimportasyncioimportpylitejetasyncdefmain():try:lj=awaitpylitejet.open("/dev/serial0")exceptpylitejet.LiteJetErrorasexc:print(f"Cannot connect:{exc}")returnawaitlj.activate_load(1)# onawaitlj.deactivate_load(1)# offawaitlj.activate_load_at(1,50,8)# 50% over 8 secondsawaitlj.close()asyncio.run(main())
Package: pyliter
pyliteris a Python 3 command-line tool that generates PNG files
from python source.Featuressyntax highlightingPNG filespreview modeOpenGL rendering using pygletInstall$ pip install pyliter$ pip install git+https://github.com/JnyJny/pyliterUsage$ pyliter --help
Usage: pyliter [OPTIONS] [INPUT_FILE]

  Python syntax highlighting

  Renders syntax-highlighted text to PNG file and optional previews the
  render in a window before saving.

  If the optional output path is omitted, preview is enabled.

Options:
  -o, --output-file PATH    Creates a PNG with the supplied path.
  -l, --start-line INTEGER  Line number to begin display.  [default: 0]
  -n, --line-count INTEGER  Number of lines to display.  [default: 10]
  -N, --no-line-numbers     Disable line numbers in output.  [default: False]
  -p, --preview             Previews output in window.  [default: False]
  -t, --transparent         Write output PNG with transparency.  [default:
                            False]
  -s, --style-name TEXT     Style to apply to input file.  [default: default]
  -f, --font-name TEXT      Font name.  [default: courier]
  -S, --font-size INTEGER   Font size  [default: 24]
  -L, --list-styles         List available styles and exits.
  --version                 Show the version and exit.
  --help                    Show this message and exit.Example
Package: pyLiteracy
PyLiteracy: A Linguistics-Based Mandarin Grammar Checker無論是否為母語者，在繁體中文的使用上，諸如近義詞、錯別字的錯誤使用是常見的，此問題也間接導致訓練資料多來自網路的大型語言模型 (LLM)無法在中文文法檢查任務上扮演可靠的角色。然而從語言學的角度來看，僅針對正確及錯誤句的對照進行模型訓練並非最有效的方式，其實此類型錯誤與詞類和句型結構有著直接關係，若將正確的詞類及句型結構規則分析化簡之後以程式碼撰寫成模型，此類以語言學規則為本的模型即能以和人類兒童依類似方式掌握語言的使用，實現以少量語料完成高效率中文文法檢查的任務。檔案總覽.
│  .gitignore
│  account.info
│  README.md
│
├─corpus  # 測試語料
│      KNOWLEDGE_schoolTW.json
│      LokiUserList.txt
│      sketch engine 再.txt
│      sketch engine 在.txt
│
├─purged corpus  # 清洗後語料
│      loc_zai_purged.json
│      loc_zai_purged.txt
│
├─Loki 
│  │  UI_main.py
│  │  
│  ├─Gua_Zai
│  │  │  Gua_Zai.py
│  │  │  missing_zai_1301-2300_revised.json
│  │  │  missing_zai_301-1300_revised.json
│  │  │  utteranceChecker.py
│  │  │  __init__.py
│  │  │
│  │  └─intent # 負責處理「在」的使用意圖
│  │     Loki_Zai_Aspect.py
│  │     Loki_Zai_idiom.py
│  │     Loki_Zai_Loc.py
│  │     Loki_Zai_Range.py
│  │     Loki_Zai_State.py
│  │     Loki_Zai_verbP.py
│  │     Updater.py
│  │     USER_DEFINED.json
│  │     __init__.py
│  │          
│  ├─static
│  │      person-man.gif
│  │
│  └─templates
│         homepage.html
│
├─ref  # 啟用 Loki 服務時，需要將裡面所有的檔案匯入 Loki project 中
│      Zai_Aspect.ref
│      Zai_idiom.ref
│      Zai_Loc.ref
│      Zai_Range.ref
│      Zai_State.ref
│      Zai_verbP.ref
│
└─toolbox  # 小工具放在這
       corpus_pos.py
       LokiTool.md
       LokiTool.py
       text_tool.py
       USER_DEFINED.json設置環境環境需求Python 3.6 or abovepip or pip3 is installed安裝相關套件執行指令：$ pip install -r requirements.txt啟用 Loki 服務登入後進入Loki 控制台輸入專案名稱，點選建立專案點選剛建立完成的專案名稱以進入專案點選選擇檔案> 選擇所有 ref 內的檔案 > 點選讀取意圖點選左上角房子圖示，回到Loki 控制台，點選複製專案金鑰將複製下來的金鑰貼上到檔案 account.info 中：{
    "username" : " ***輸入 USERNAME (註冊信箱)*** ",
    "api-key" : " ***將 Articut 金鑰貼到這裡*** ",
    "loki-key" : " ***將專案金鑰貼到這裡*** ",
}開始使用執行指令：$ python .\Loki\UI_main.py在瀏覽器開啟http://127.0.0.1:5000聯絡資訊若您還有其他任何的疑問，歡迎透過E-mail聯繫我們，謝謝。Jonathan Chen：chenjonathan901210@gmail.comJoe Huang：joehuangx@gmail.comPeterWolf：peter.w@droidtown.coLisi Yang：lisi16810@gmail.comSpec :https://docs.google.com/document/d/1QGHcbVy7gJJZVTW6DK2HHFGLnOvNRLaBPIwmPiWWSv4/edit?usp=sharing
Package: pyliterature
###pyliterature
A Python web wrapper and text mining package for the scientific journal, including Nature, Science, ScienceDirect, Wiley, ACS publication, RSC publication and so on.###Author
* Xing Wang  <xingwang1991@gmail.com>###DependenciesPython >=27spynnerbeautifulsoup4nltk####Examples`python >>> from pyliterature import Pyliterature >>> url ='http://www.nature.com/nature/journal/v541/n7635/full/nature20782.html'>>> keyword = 'DFT' >>> liter = Pyliterature(url, keyword) >>> liter.parser() >>> liter.text >>> for sent in liter.keysents: ...    print(sent) ... `If you want to add features/improvement or report issues, feel free to send a pull request!###TODO
* read bib list
* determine sentence from which article
Package: pylitetouch
pylitetouchLitetouch Integration library for interfacing with Savant SSL-P018 / 5000LC ControllersImplemented Features:Turn Load on by Load IDTurn Load off by Load IDSet Brightness Level by Load IDReceive LED updates by keypad and button (events to determine if a load associated to the button is turned on or off)Returned as:  Event Keypad_Button Status  //Example:  RLEDU 22_1 1  Keypad 22 button 1 is on.In Development:Request LED States by KeypadSAMPLE:import pylitetouch 
import time

host = '192.168.1.65'
port = 10001

load = 105
lvl = 90
kp = 22
but = 1

def callback(msg, args, state):

    """Show the message are arguments."""

    print(msg, args)



LT = pylitetouch.LiteTouch(host,port,callback)



LT.set_loadlevel(load,lvl)

LT.set_loadon(load)
LT.get_led_states(22,1)
LT.set_loadoff(load)

LT.toggle_switch(22,1)

print('Waiting for Messages')
time.sleep(10.)

print('Close Connection')
LT.close()
Package: pylitsense
pylitsenseThepylitsensepackage is an unofficial Python wrapper for theNCBI LitSenseAPI. It allows you to query the LitSense API and get back a list ofLitSenseResultobjects, which contain the text of relevant sentences and a score of their similarity to your query.NCBI describes LitSense as follows:LitSense is a unique search system for making sense of the biomedical literature at the sentence level, providing a unified access to over half a billion statements extracted from PubMed and PubMed Central.Given a query, LitSense finds the best-matching sentences based on overlapping terms as well as semantic similarity via a cutting-edge neural embedding approach.For example, given this query:"Breast cancers with HER2 amplification"You will receive an array of results, each with a score of how relevant it is to your query, like this:[
    LitSenseResult(
        text='HER2 amplification/overexpression accounts for aggressive clinical features of HER2 positive breast cancer.', 
        score=0.9443494081497192, 
        annotations=[
            '79|4|gene|2064', 
            '93|13|disease|MESH:D001943', 
            '0|4|gene|2064'
        ],
        pmid=28800870,
        pmcid=None,
        section='abstract'
    ), 
    ...
]InstallationpipinstallpylitsenseUsagefrompylitsense.pylitsenseimportPyLitSense# Initializepls=PyLitSense()# Queryresults=pls.query("your query here")# Print resultsforresultinresults:print(result.text,result.score)Parametersquery_str(str): The query string for the API.rerank(bool, optional): Whether to rerank the results. Defaults to True.It seemsthat this refers to reranking using "semantic vectors" (embeddings).limit(int, optional): Limit the number of results. Defaults to None (no limit).min_score(float, optional): Minimum score threshold for results. Defaults to None (no minimum score).LimitationsThe LitSense API itself has the following limitations:Maximum of 100 results per queryRate limit of one request per user per secondIn addition, this package is:Only tested on Python 3.9, 3.10, and 3.11