Saravanan666/pypi-org huggingface dataset:
Package: libertem-jupyter-proxy
Run the LiberTEM GUI in JupyterLab / JupyterHubSeethe LiberTEM docsfor more details!RequirementsPython 3.6+Jupyter Notebook 6.0+JupyterLab 2.1+LiberTEM 0.8.0+LiberTEMLiberTEMis an open source platform for high-throughput distributed processing of large-scale binary data sets and live data streams using a modified MapReduce programming model.
The current focus is pixelated scanning transmission electron microscopy (STEM) and scanning electron beam diffraction data.InstallInstall this package and LiberTEM:$ pip install libertem-jupyter-proxy libertemenablejupyter-server-proxyextensionFor Jupyter Classic, activate the jupyter-server-proxy extension:jupyter serverextension enable --sys-prefix jupyter_server_proxyFor JupyterLab, install the @jupyterlab/server-proxy extension:jupyter labextension install @jupyterlab/server-proxy
jupyter lab buildStart jupyter-lab or jupyter-notebook$ jupyter-labor$ jupyter notebookNow LiberTEM should be available as an icon in JupyterLab, or in the
"New" dropdown in the classical notebook interface / JupyterHub.Deployment notesWhen deploying behind a reverse proxy, make sure websocket requests are
proxied for all URLs, not just for specifically matching ones. Otherwise, something
like connecting towss://<hostname>/user/<username>/libertem/events/will fail
with 400 bad request, asUpgrade: websocketis not supported.If you want to customize the startup of LiberTEM, you can drop a JSON file into$PREFIX/etc/libertem_jupyter_proxy.json, with contents like this:{"libertem_server_path":"/path/to/a/venv/bin/libertem-server"}This allows to install LiberTEM itself into a different Python environment
than Jupyter, as opposed to using the same environment as in the example above.
It can also allow to write a wrapper script to customize the environment setup, as in the example scriptlibertem_jupyter_proxy/share/launch_juwels.shWithout configuration,libertem-serveris expected to be found in$PATH.Try it (WIP)ThanksMostly stolen fromhttps://github.com/betatim/vscode-binder
Package: libertem-live
LiberTEM-live is an extension module forLiberTEMthat allows live
data processing.NoteLiberTEM-live is still experimental and under active development, including
the overall architecture. New releases can include changes that break
backwards compatibility until the code and architecture are proven in
practical application and stabilized sufficiently.That being said, we encourage early experimental use, are happy to support
real-world application and appreciate feedback! You can contact us bycreating or commenting on an Issue on GitHubor in theLiberTEM
Gitter chat.LiberTEMuser-defined functions (UDFs)are designed to work without
modification on both offline data and live data streams. That means allLiberTEM applicationsandLiberTEM-based modulescan work with all
supported detectors in LiberTEM-live.InstallationThe short version to install into an existing LiberTEM environment:(libertem)$python-mpipinstall"libertem-live"See theLiberTEM installation instructionsfor more details on
installing LiberTEM.DetectorsQuantum Detectors MerlinDECTRIS EIGER2-basedAmsterdam Scientific Instruments CheeTah TPX3Seethe documentationfor details.Support for the Gatan K2 IS, ASI MPX3, and X-Spectrum cameras is currently
under development.LicenseLiberTEM-live is licensed under GPLv3. The I/O parts are also available under
the MIT license, please see LICENSE files in the subdirectories for details.AcknowledgementsWe are very grateful for your continuing support for LiberTEM-live!Seethe acknowledgement pagefor a list of
authors and contributors to LiberTEM-live and other LiberTEM projects. See also
our info onfundingandindustry
partners.
Package: libertymetric
Liberty Metric Extractioninstallationpip install libertymetricimport packagefrom libertymetric.classLiberty import liberty as lutilload & convert CCS to JSONlnode = lutil.read_lib('ccs.lib')
lutil.dump_json(lnode,out='ccs.json')
lnode.keys()load liberty from JSONlnode = lutil.load_json('ccs.json')
lnode.keys()list cells in the liberary[v for v in lnode['cell']]grab cell node by cell-name, e.g., 'ND2D1LVT'cnode = lnode['cell']['ND2D1LVT']encapsulate all timing/power tables by timing-arc into a dataframelutT = lutil.get_cell_timing(cnode,todf=True)
lutP = lutil.get_cell_power(cnode,todf=True)
lutT.index # enumerate all lookup tables encapsulated by timing-arc
lutP.index # enumerate all lookup tables encapsulated by timing-arclookup table interpolation, e.g., timing-arc ('A1,ZN,', 'combinational', 'cell_rise')lut = lutT.loc[('A1,ZN,', 'combinational', 'cell_rise')]
y,x,v = map(np.array,lut.values) # unpack values as numpy arraytiming interpolation based on the specified transition & loadlutil.table_lookup(lut,trans=0.0207,load=0.0010072,dflag=True)LS regression & predictionlutil.lut2lsCoeff(lut.to_dict(),trans=0.03,load=0.0017,dflag=True)visualizationlutT = lutT.T.to_dict() # convert dataframe to JSON
lutil.plot_lut(lutT,keys=('A1,ZN,', 'combinational', 'cell_rise'))
Package: liberty-parser
Liberty ParserThis library provides functions to parse, manipulate and format 'Liberty' files.
The liberty format is a common standard to describe certain aspects of standard-cell libraries such as timing, power, cell pin types, etc.Examplefromliberty.parserimportparse_liberty# Read and parse a library.library=parse_liberty(open(liberty_file).read())}# Format the library.print(str(library))# Loop through all cells.forcell_groupinlibrary.get_groups('cell'):name=cell_group.args[0]print(cell_name)# Loop through all pins of the cell.forpin_groupinlibrary.get_groups('pin'):pin_name=pin_gropu.args[0]print(pin_name)# Access a pin attribute.some_attribute=pin_group['some_attribute']Library structure.The liberty library is made ofGroupobjects.
The library itself is aGroupobject. AGroupcontains
other nestedGroups, has a name, a list of arguments and
attributes.group_name(args) {
    simple_attribute: 1.23;
    other_group_name(args) {
        other_simple_attribute: 2.34;
        complex_attribute (1.23, 2.34);
    }
}Reading arrays and timing tables.Timing tables are stored in the liberty format as attributes which holds a string with comma-separated values.This string can be converted into a Numpy array withget_array:some_group.get_array('attribute_name')More examplesExample scripts can be found under./examples.Install for developmentRun the following command to install the liberty parser using symlinks. This allows to edit the parser with immediate effect on the installed package.pip install --upgrade --editable .
Package: liberty-tui
libertyA spaced-repetition TUI for free-response active recall.Made in Python with Urwid, July 2021 to present.Released under theMIT License.Created byKewbish.On PyPi:libertyDemoUsageRunpython liberty.py [name of file]to run Liberty. The file can be any text file (I suppose any file at all, but I don't think you'll get much use out of an executable) - the way prompts are specified is through the use of a[lx]tag, where x is a number from 1 to 7. Seethis explanation of the Leitner box systemfor more specifics on why this is useful.Flags:--stats,-s: Print detailed prompt answer stats. Default: false.--nokeys,-k: Do not print keyboard commands at the bottom of the TUI. Default: false.--threshold-r,-r: Threshold between raising and lowering level. Specify as decimal, default: 0.8.--threshold-f,-f: Threshold between lowering level and setting to 0. Specify as decimal, default: 0.6.--level,-l: Leitner level to test. If 0, will test all levels. Default: 0.InstallationRunpip install libertyto get the latest version from PyPi.
Package: libest
A python library to communicate with Exercise Submission Tool (https://est.informatik.uni-erlangen.de).InstallationDownload the latest release fromhttps://pypi.python.org/pypi/libest/or simply runpip install libestDependenciespython-requestspython-bs4python-magicLicense<a rel=”license” href=”http://creativecommons.org/licenses/by-sa/4.0/”><img alt=”Creative Commons License” style=”border-width:0” src=”https://i.creativecommons.org/l/by-sa/4.0/88x31.png” /></a><br />This work is licensed under a <a rel=”license” href=”http://creativecommons.org/licenses/by-sa/4.0/”>Creative Commons Attribution-ShareAlike 4.0 International License</a>.
Package: libestg3b
§ 3b of the German Einkommensteuergesetz (EStG) defines the premiums for work on
weekends, holidays and special days, like new year. This library takes a list of
work hours / shifts (e.g. on 2018-06-03 from 19:00 until 03:00) and returns the
premium factor (e.g. 1.5) as well as the relevant time-spans.As noted in the license, this software is provided without any warranty or
guarantee for correctness.§ 3b des Deutschen Einkommensteuergesetzes (EStG) definiert die Höhe der
steuerfreien Zuschläge für Arbeit in der Nacht, an Sonntagen, Feiertagen sowie
besonderen Tagen wie Neujahr. Diese Library errechnet aus einer Liste von
Arbeitszeiten die Höhe der maximalen Zuschläge.Diese Software wird, wie in der Lizenz angegeben, ohne Gewähr und Garantie
auf Richtigkeit bereitgestellt.InstallationInstall libestg3b via pip:$pipinstalllibestg3bUsage>>>importdatetimeasDT>>>fromlibestg3bimportEStG3b>>>e=EStG3b('DE')()>>>e.calculate_shift([datetime(2018,9,16,20),datetime(2018,9,17,2)])[
    Match(
        start=datetime.datetime(2018, 9, 16, 19, 0),
        end=datetime.datetime(2018, 9, 16, 20, 0),
        rules={<Rule: Sonntagsarbeit>}
    ),
    Match(
        start=datetime.datetime(2018, 9, 16, 20, 0),
        end=datetime.datetime(2018, 9, 17, 0, 0),
        rules={<Rule: Sonntagsarbeit>, <Rule: Nachtarbeit 20:00-06:00>}
    ),
    Match(
        start=datetime.datetime(2018, 9, 17, 0, 0),
        end=datetime.datetime(2018, 9, 17, 2, 0),
        rules={<Rule: Sonntagsarbeit (Montag)>, <Rule: Nachtarbeit 00:00-04:00 (Folgetag)>}
    ),
]DevelopmentSetupUsing python 3.6, do the following:$virtualenvvenv--python=python3.6$pipinstall-e".[dev]"Usual Tasksmake test: run tests (usetoxorpy.testdirectly to supply flags like-k)make lint: run pylava and friendsmake fixlint: sort imports correctlyReleasing a new versionAssuming you have been handed the required credentials, a new version
can be released as follows.adapt the version insetup.py, according tosemver.commit this change asVersion 1.2.3tag the resulting commit asv1.2.3push the new tag as well as themasterbranchupdate the package on PyPI:$rmdist/*$pythonsetup.pysdistbdist_wheel$twineuploaddist/*PrerequisitesThis library is currently python 3.6+. If you would like to use this library
with a lower python version, please open an issue. We’re happy to change things
around.VersioningNew version numbers are assigned followingsemver. All
0.x.y versions are tested and usable, but do not have a stable public interface.A version 1.0 will be released, once we deem the library stable.LicenseAll code in this repository is licensed under the MIT license.
Package: lib-exo-populator
Generic populate models in django from YAML filesQuickstartInstall exo_populator:pip install lib-exo-populatorAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'populate',...)Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2018-11-26)First release on PyPI.
Package: libextract
___ __              __                  __
   / (_) /_  ___  _  __/ /__________ ______/ /_
  / / / __ \/ _ \| |/_/ __/ ___/ __ `/ ___/ __/
 / / / /_/ /  __/>  </ /_/ /  / /_/ / /__/ /_
/_/_/_.___/\___/_/|_|\__/_/   \__,_/\___/\__/Libextract is astatistics-enableddata extraction library that works on HTML and XML documents and written in
Python. Originating fromeatiht, the
extraction algorithm works by making one simple assumption:data appear as
collections of repetitive elements. You can read about the reasoninghere.Overviewlibextract.api.extract(document, encoding=’utf-8’, count=5)Given an htmldocument, and optionally theencoding, return
a list of nodes likely containing data (5 by default).Installationpip install libextractUsageDue to our simple definition of “data”, we open up a single
interfaceable method. Post-processing is up to you.fromrequestsimportgetfromlibextract.apiimportextractr=get('http://en.wikipedia.org/wiki/Information_extraction')textnodes=list(extract(r.content))Using lxml’s built-in methods for post-processing:>>print(textnodes[0].text_content())Informationextraction(IE)isthetaskofautomaticallyextractingstructuredinformation...The extraction algo is agnostic to article text as it is with
tabular data:height_data=get("http://en.wikipedia.org/wiki/Human_height")tabs=list(extract(height_data.content))>>[elem.text_content()forelemintabs[0].iter('th')]['Country/Region','Average male height','Average female height',...]Dependencieslxml
statscounterDisclaimerThis project is still in its infancy; and advice and suggestions as
to what this library could and should be would be greatly appreciated:)
Package: libfaketime-tz-wrapper
A wrapper aroundpython-libfaketimethat introduces awareness for (django) timezones.InstallationInstall withpip:$pipinstalllibfaketime-tz-wrapperSetuplibfaketime needs the LD_PRELOAD variable to be set.If you run your tests in PyCharm, add it to the environment variables of your test configuration in PyCharm:name: LD_PRELOAD
value: /home/foo/<snip>/vendor/libfaketime/src/libfaketime.so.1If you run tests in the command line, export this environment variable when running the test command:$LD_PRELOAD=/home/foo/<snip>/vendor/libfaketime/src/libfaketime.so.1<runtestcommand>In both cases, replace the <snip> part with the correct path to where the libfaketime package was installed.Usageimportdatetimefromlibfaketimeimportfake_timedefget_tomorrow():returndatetime.date.today()+datetime.timedelta(days=1)@fake_time('2014-01-01 00:00:00')deftest_get_tomorrow():assertget_tomorrow()==datetime.date(2014,1,2)
Package: libfaleite
libpythonproMódulo para exemplificar construção de projetos Python no curso PyToolsNesse curso é ensinado como contribuir com projetos de código abertoLink para o cursoPython ProSuportada a versão 3 de PythonPara instalar:python3 -m venv .venvsource .venv/bin/activatepip install -r requirements-dev .txtPara conferir qualidade de código:flake8Tópicos a serem abordados:GitVirtualenvPip
Package: libfcs
libfcs-pythonPython bindings for libfcshttps://ro-che.info/articles/2015-10-26-static-linking-ghchttps://www.hobson.space/posts/haskell-foreign-library/TODO: try using nested offsets. E.g. if you are trying to find the pointer
in order to free it, use
#{offset FCSFile name.buffer}
Package: libfelix
flxFelix without ei. 😁Felix' library of snippets.few dependencieskeep it simpleInstallationpip install libfelixflx.git>>>fromflx.gitimportRepo>>>r=Repo('.')>>>r.head'9e260ece8558ba9a6c4ad6a9c89905630fe0140b'Developmentpyenv virtualenv 3.10.11 flx
pyenv local flx
pip install -U pip
pip install -e .[dev]
Package: libfhe
pylibfhePython wrapper forlibfheDependencieslibfhe- SeeINSTALLfor build instructionsGNU multiprecision librariesaptinstall-ylibgmp-devlibmpfr-devlibmpc-devInstalling (PyPI)pipinstalllibfheBuilding from Sourcegitclonehttps://git.libfhe.org/core/libfhe.gitcdlibfhe/python
pythonsetup.pyinstallcdtests&&py.test# run test suite
Package: libfm
Run ‘easy_install libfm’ to install this library.All API methods are handled through the ‘read’ and ‘write’ methods.Methods from the API’s Auth should not be called directly. Instead use
the equivalent ‘create_mobile_session’, ‘create_session’ and ‘get_token’.The ‘read’ and ‘write’ methods will return a JSON like structure made up of
lists and dictionaries. The same structure will be generated regardless the
format of the actual API method response (XML or JSON). By default libfm will
try to ask for JSON response formats. Seehttp://www.last.fm/api/restfor the
rules on how XML responses get transformed into JSON.Error responses will be raised as exceptions of type LibFMError. Error codes
above 100 correspond to error types introduced by this library.Http proxies are supported per LibFm object instance.LibFm’s instances are thread safe, provided you refrain from modifying their
instance members mid-execution :).See example.py for usage examples.
Package: libfreehackquestclient
libfreehackquest-client-pyFreeHackQuest Python Client Library for fhq-server:https://github.com/freehackquest/fhq-server.gitInstallpip3 install libfreehackquestclient --upgradeExample code#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from libfreehackquestclient import FreeHackQuestClient

fhq = FreeHackQuestClient("ws://freehackquest.com:1234/ws-api/")

q = fhq.quest({"questid": 148})
print("quest: " + str(q))

# or "ws://freehackquest.com:1234" or "ws://freehackquest.com/ws-api/"
resp = fhq.login({"email": "admin", "password": "admin"})
if resp == None:
    print('Could not login as user (1)')

if resp['result'] == 'FAIL':
    print('Could not login as user (1)')

print("user info: " + str(resp))Full description API here:API.md
Package: libFTP
libFTPInstall Pippip install -i https://test.pypi.org/simple/ libFTPExmaple libFTPimport libFTP as lfp
lfp.Get("locahost","user account","password","dir","type","save")localhostisIPfor ftpserver.user accountisuser accountfor ftpserver .passwordis *** password account** for ftpserver .dirisPath folder get filefor ftpserver .typeisType file filter file getfor ftpserver .saveisPath save file in localhostfrom ftpserver .function lfp.Get canretrun Trueis Connect success. ifretrun Falseis disconnect or Connect false.
Package: libfuncpy
MotivationFunctional Programming tools in Python - extending beyond map, filter,
reduce, and partial.Changelogv0.0.4 (2021-07-19)Add docstringsaddmapcadd new names and list of deprecatesdisableisortchecksv0.0.3 (2021-06-29)implementedmake_iterablev0.0.2 (2021-06-29)corrected git actionsv0.0.1 (2021-06-29)PyPI badgesv0.0.0 (2021-06-29)Initial library commit
Package: libfurc
LibFurcA python library for handling Furcadia formats, compiling and running(vm) DragonSpeak, and various other things.Contributions welcome!FeaturesAccount pickerAccount based log inINI based log inAsync clientNear complete support for all server to client messagesSome support for client to server messagesVXN support (Particles!)Fox5 supportPlanned FeaturesDocumentationDream supportFSH supportFBJ supportLegacy Fox supportPCX support (Although not furcadia specific, it'll be implemented)DragonSpeak CompilerDragonSpeak VMSource referencingWriting a different library for Furcadia, or need to look up message opcodes for Furcadia?
Perhaps need information on a file format?
Feel free to reference this source code without attibuting this project!
Not only do I not mind, but I encourage this. Properly written software benefits everyone in the end.DisclaimerThis project is not sponsered, endorsed, or officially recognized in any way by Dragon Eye's Production or Catnip Studios.This is a unofficial fan project.Furcadia is a trademark of Dragon's Eye Productions.
Package: libfuzzer
libfuzzerThis is raw bindings for libfuzzer which works as a library.Example:#!/usr/bin/env python3fromlibfuzzerimport*importosimportsysCounters=CreateLibFuzzerCounters(4096)defTestOneInput(input):# Instrument the code manually.l=len(input)ifl==0:Counters[0]+=1elifl==8:Counters[1]+=1elifl==16:Counters[2]+=1os.abort()else:Counters[3]+=1Counters[4]+=1return0defInitialize(argv):return0defMutator(data,max_size,seed):returnLLVMFuzzerMutate(data,max_size)defCrossOver(data1,data2,out,seed):return0# If you are using -fork=1, make sure run it like `python3 ./example.py` or# `./example.py` instead of `python3 example.py`.LLVMFuzzerRunDriver(sys.argv,TestOneInput,Initialize,Mutator,CrossOver,Counters)
Package: libgen
libgen :- A command line tool for downloading files from library genesis1. Installpipinstalllibgen--upgradeUsageSearch for books using titlelibgensearch"Machine Learning"Result{'author':'Christopher M. Bishop','format':'pdf','id':'640','lang':'English','link':'http://93.174.95.29/main/6B552B24CAE380BB656F7AAEF7F81B46','name':'Information science and statisticsPattern Recognition and Machine ''Learning [1st ed. 2006. Corr. 2nd printing] 9780387310732, ''0387310738','publisher':'Springer','size':'5 Mb','year':'2006'}.....Download files using "link" obtained from searchlibgendownload--urlhttp://93.174.95.29/main/6B552B24CAE380BB656F7AAEF7F81B46--outputfile.pdf# or download using id# libgen download --id 640ResultDownloading:file.pdf:21%|████▌956k/4.52M[00:10<00:32,116kB/s]You can specify the output file name using--output
Package: libgenapi
A Python library that provides an api to search and get links from
Books,Magazines,Comics,… from Library Genesis.Requirements:Python 2/3Grab library and it’s dependencies.Installation:Two options: * Clone this repo and use “python setup.py install” * Use
pip, “pip install libgenapi”Example of usage:import libgenapilg=libgenapi.Libgenapi([”http://[INSERTMIRROR DOMAIN 1
HERE].com”,”http://[INSERTMIRROR DOMAIN 2 HERE].com]) # You can add
as many mirrors as you want.lg.search(“python”)Then the results are something like this (but… without the crazyness
:P real links and titles…):[
    {
        "author":"Dat Guy",
        "series":"Library of New Guy Studies volume 420",
        "title":"Dat perfect 5/7 Title !",
        "isbn":[123456],
        "edition":"[1 ed.]",
        "publisher":"WHo knows? Me no!",
        "year":"420",
        "pages":"420",
        "language":"chan",
        "size":"420 kb",
        "extension":"vap",
        "mirrors":["http://IDontWantADMCA.takedown/view.php?id=1337HAYKER",
                 "http://IDontWantADMCA.takedown/ads.php?md5=MD5HERE",
                 "http://IDontWantADMCA.takedown/md5/MD5HERE",
                 "http://IDontWantADMCA.takedown/md5/MD5HERE"
                 ]
    }
]You can also choose the column to search like this:l.search("93438924","identifier")# Identifier is ISBNl.search("Michael","author")...Other examples:You can make a quick command to search using an alias, for example in
zsh you can add this to your .zshrc: > alias lgen=”python -c ‘import
sys;import
libgenapi;l=libgenapi.Libgenapi(”http://[INSERTDOMAINHERE]/”);print(l.search(sys.argv[1]))’”