Saravanan666/pypi-org huggingface dataset:
Package: adhanpy
adhanpyThis is a port ofbatoulapps/adhan-java, a prayer times program, from Java to Python.
As it stands the project reuses most of the structure of the original project but may differ through refactoring and in an effort
to rewrite in a more pythonic way where it makes sense.
Like the original project there are no external dependencies except in development wherepytestand other development tools are made use of.RequirementsPython >= 3.9Installationpip install adhanpyUsageCreate aPrayerTimesobject by passing geo coodinates, datetime and either passing a calculation method:prayer_times=PrayerTimes(coordinates,today,CalculationMethod.MOON_SIGHTING_COMMITTEE)or a calculation parameters object allowing to choose from different parameters such as angles:parameters=CalculationParameters(fajr_angle=18,isha_angle=18)prayer_times=PrayerTimes(coordinates,today,calculation_parameters=parameters)If passing a calculation method to the calculation parameters object, the calculation method
will have precedence and will overwrite other parameters you may have also passed.For instance the MOON_SIGHTING_COMMITTEE method uses a fajr angle of 18 and if for
instance the calculation parameters object is created by passing a different fajr angle the
latter will be ignored:parameters=CalculationParameters(fajr_angle=12,method=CalculationMethod.MOON_SIGHTING_COMMITTEE)prayer_times=PrayerTimes(coordinates,today,calculation_parameters=parameters)print(parameters.fajr_angle)# 18.0 (the fajr_angle argument has been ignored)Times are returned in UTC time via datetime objects, for convenience it is possible to directly pass
a ZoneInfo object to PrayerTimes:london_zone=ZoneInfo("Europe/London")prayer_times=PrayerTimes(coordinates,today,CalculationMethod.MOON_SIGHTING_COMMITTEE,time_zone=london_zone,)# this will display the time in the chosen time zoneprint(f"Fajr:{prayer_times.fajr.strftime('%H:%M')}")or convert to a different timezone later, each prayer time object is in fact a datetime object:prayer_times=PrayerTimes(coordinates,today,CalculationMethod.MOON_SIGHTING_COMMITTEE,)# the following will be in UTCprint(f"Fajr:{prayer_times.fajr.strftime('%H:%M')}")# and to use a different timezone on the datetime object itself:london_zone=ZoneInfo("Europe/London")print(f"Fajr:{prayer_times.fajr.astimezone(london_zone).strftime('%H:%M')}")A full example is located insrc/exampleof the project directory.DevelopmentTo install adhanpy for development purposes, run the following:python3 -m virtualenv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .LicenceMITAcknowledgmentsCredits go to the author of the original implementation in Java and other languages, especially the very complex astronomy
formulas.
Package: adhocboost
AdHocBoostWelcome to AdHocBoost--a model that is specialized for classification in a severely imbalanced-class scenario.AboutMany data science problems have severely imbalanced classes (e.g. predicting fraudulent transactions, predicting
order-cancellations in food-delivery, predicting if a day in Berlin will be sunny). In these situations, predicting the
positive class is hard! This module aims to alleviate some of that.TheAdHocBoostmodel works by creatingnsequential models. The firstn-1models can most aptly be thought of
as dataset filtering models, i.e. each one does a good job at classifying rows as "definitelynotthe positive class"
versus "maybe the positive class". Thenthmodel only works on this filtered "maybe positive" data.Like this, the class imbalance is alleviated at each filter-step, such that by the time the dataset is filtered for
final classification by thenthmodel, the classes are considerably more balanced.Run InstructionsInstallation is withpip install adhocboost. Beyond that,AdHocBoostconforms to a sklearn-like API: to use
it, you simply instantiate it, and then use.fit(),.predict(), and.predict_proba()as you see... fit ;)
Package: adhoc-pdb
adhoc-pdbA simple tool that allows you to debug your system whenever you want, with no overhead, even in production!Installpip install adhoc-pdb(orpip install adhoc-pdb[cli]to get a nice CLI)For development, clone this repo and runmake.UsageIn your code:importadhoc_pdbadhoc_pdb.install()Debug using adhoc-pdb cli:adhoc-pdb<pid>or using pure shell:kill-SIGUSR1<pid>
telnetlocalhost9999
Package: adhocracy-Pylons
The Pylons web framework is designed for building web applications and
sites in an easy and concise manner. They can range from as small as a
single Python module, to a substantial directory layout for larger and
more complex web applications.Pylons comes with project templates that help boot-strap a new web
application project, or you can start from scratch and set things up
exactly as desired.ExampleHello Worldfrom paste.httpserver import serve
from pylons import Configurator, Responseclass Hello(object):def __init__(self, request):self.request = requestdef index(self):return Response(body=”Hello World!”)if __name__ == ‘__main__’:config = Configurator()
config.begin()
config.add_handler(‘home’, ‘/’, handler=Hello, action=’index’)
config.end()
serve(config.make_wsgi_app(), host=’0.0.0.0’)Core FeaturesA framework to make writing web applications in Python easyUtilizes a minimalist, component-based philosophy that makes it easy to
expand onHarness existing knowledge about PythonExtensible application designFast and efficient, an incredibly small per-request call-stack providing
top performanceUses existing and well tested Python packagesCurrent StatusPylons 1.0 series is stable and production ready. The Pylons Project now
maintains the Pyramid web framework for future development. Pylons 1.0 users
should strongly consider using it for their next project.Download and InstallationPylons can be installed withEasy Installby typing:> easy_install PylonsDependant packages are automatically installed from
thePylons download page.Development VersionPylons development uses the Mercuial distributed version control system (DVCS)
with BitBucket hosting the main repository here:Pylons Bitbucket repository
Package: adia
ADiadiagram: Foo
sequence:
foo -> bar: Hello World!Output:DIAGRAM: Foo                             

 +-----+             +-----+
 | foo |             | bar |
 +-----+             +-----+
    |                   |
    |~~~Hello World!~~~>|
    |                   |
    |<------------------|
    |                   |
 +-----+             +-----+
 | foo |             | bar |
 +-----+             +-----+ADiais a language specially designed to
render ASCII diagrams.Currently, only sequence diagrams are supported, but the roadmap is to support
two more types of diagrams:fork(pylover/adia#42) andclass(pylover/adia#41).Get Closer!live demo pagedocumentationThe ADia can also run flawlessly inside the browsers using the awesome
project:Brython.Thehttps://github.com/pylover/adia-liveis a good example of how
to use it inside the Javascript. In addition, please read theJavascript APIsection of thedocumentation.
Package: adi.bookmark
Provide a bookmarklet for storing bookmarks as an Archetype-based link-item to
a given Plone-folder.WhyCraved for a quick way to store interesting site-addresses to my Plonesite.WhatProvide a bookmarklet which, when clicked, will:Transfer the currently watched URL and store it as a link-item.Use the current Linux-date in seconds as the id for the link.Use the current window’s title as the link-title, if not given falls back
to the part of the URL after its last slash.Offer the user a prompt to enter an additional description and give a chance
to cancel the whole operation.HowInstall this add-on to a Plone-site and call the folder where you want to store
bookmarks to, append ‘/adi_bookmark’ to the URL in your browser, drag’n’drop
the offered link to your browser’s bookmark-bar.Optionally, you can get the bookmarklet without installing, from:http://euve4703.vserver.de:8080/adi/static/public/repos/github/ida/adi.bookmark/adi/bookmark/skins/adi_bookmark/adi_bookmark.ptThere enter the Plone-folder-destination before drag’n’dropping the link.Now, anytime you’ll click that bookmarklet, it’ll redirect you to the Plone-folder
and store the former watched URL as a link.CaveatsIt is very unlikely but possible, that the generated link-id of the current
date could be taken already, however we (meh, myself and their royal majesties)
decided to take that risk. If the id exists already, the existing object would
be overwritten, possibly unintended, thy had been warned.TODODecode strings before passing as URL-params. Special characters will likely
blow things up, not tested, yet.Support keywords a.k.a. tags.
Package: adic
adicDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nadic--fileenv.ymlInstallpipinstall-e.# install from pypipipinstalladicnbdev# activate conda environment$condaactivateadic# make sure the adic package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the adic package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/adic.gitor fromconda$condainstall-cdsm-72adicor frompypi$pipinstalladicDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: adicao-subtracao
aritmetica_basicaDescription.
The package aritmetica_basica is used to:
-
-InstallationUse the package managerpipto install aritmetica_basicapipinstalladicao_subtracaoUsagefromaritmetica_basica.adicaoimportaritmetica_basicaaritmetica_basica.adicao()AuthorJonatasLicenseMIT
Package: adi.commons
Introduction============Some very common filesystem-operations, wrapped into functions with names tobe easily remembered, and adjustments for wanted default behaviours, such as:When attempting to delete a file which doesn't exist, fail silently.Changelog=========1.1 (2017-06-06)----------------- Add isUpcomingWord().- Add aliases of existing defs: read(), write(), append(), prepend(), contains().- Sort defs alphabetically.1.0 (2016-10-21)----------------- Add newlinesToTags() and iterToTags().0.9 (2016-07-10)----------------- Add isEven() and isOdd().0.8 (2016-05-19)----------------- Add removeLinesContainingPattern().0.7 (2016-05-14)----------------- Add writeFile(), appendToFile() and prependToFile().0.6 (2015-11-22)----------------- Add insertAfterNthLine().0.5 (1509201)------------ Let addDirs() fail silently, if the directory to create, exists already.- Better hlp-msgs.0.4 (150920)------------ Really adjust MANIFEST (good morning Kreuzberg)0.3 (150920)------------ Adjust MANIFEST0.2 (150920)------------ Add MANIFEST0.1 (150920)------------ Initial release
Package: aDict2
aDict provides interface to reading and writing aDict dictionary format.
Typical usage:from adict import *                # data classes
from adict.parser import Parser    # text to data
from adict.printer import Printer  # data to text

with open('some file') as f:
    a = Article('Python')
    a.classes.append('n')
    a.transcriptions.append('Л€paЙЄОёЙ™n')
    d1 = Definition('a kind of programming language')
    d2 = Definition('a kind of Snake')
    d2.links.append('hyperonym', 'Snake')
    a.content = [d1, d2]

    dictionary = Parser(f).parse()
    dictionary.articles.append(a)

with open('some other file', 'w') as f:
    f.write(str(Printer(dictionary)))aDict format specificationвЂ¦in English has not written yet. :)However, I think, this format is pretty simple to understand by trial and error or by looking on this implementation.ContributorsOnly me = arseniiv so far.
Package: adi.dropdownmenu
Introduction============This product uses Products.ContentWellPortlets to place a sitemap-portletabove the columns and gives the dropdown-effect via CSS.This way, your folder structure will be mirrowed in the dropdown.The depth and target-folder can be configured via the sitemap-portletsweb-user-interface, just like Plone's standard navigation-portlets.Includes responsive design for dektop-, tablet- and mobile-devices.Installation============In your buildout.cfg's eggs-section add 'adi.dropdownmenu',run builduot, restart instance.Dependencies============- Products.ContentWellPortlets- collective.portlet.sitemapCredits=======Glued together by Ida Ebkes.In kind cooperation with Alterway, the creators of "collective.portlet.sitemap".The Weblion's crowd for developing "Products.ContentWellPortlets".And thanks to all of the friendly and helpful people of the Plone community.Changelog=========0.7 (2016-09-04)----------------- Also add button in menu-head for toggling entire menu, for small screens.0.6 (2016-09-04)----------------- Add layout for tablets and mobile-devices.- Note: Version '0.5' seems to have been a brown-bag-release, itdoesn't get pulled of PyPI when running buildout. We ignore version'0.5' and continue with '0.6'.0.4 (2012-02-01)-------------------- really hide globalnav (forgot config in last release) [ida]0.3 (2012-01-29)-------------------- Deassign collective.portlet.sitemap in left column. [ida]- Hide default globalnav-viewlet. [ida]- Unlimited css-sublevel-depth-support. [ida]- Styling for top-ul and visualize selected toplevel. [ida]0.2 (2012-01-07)-------------------- Extended CSS to support up to two sublevels instead of one.0.1 (2012-01-05)-------------------- Initial release
Package: adi.fullscreen
IntroductionThis Plone-add-on supplies a fullscreen-button
below the title of any plone article, symbolized with expanding
and collapsing arrows.The button consists of four unicode-arrow-characters, so can easily
obtain visual control over the element via, f.e. change color, include
a background-image, or such.When clicked, left- and right-columns and top- and footer-elements are
hidden and the main column expands to full width and height of the window.On reload or calling another page, the view falls back to non-fullscreen
in order to not accidently hide releveant context information, if the
user forgets being in fullscreenmode.Please note, that the term ‘fullscreen’ here doesn’t mean, the browserwindow
dissapears, but any element but the actual article is hidden, which let’s
you focus more on the content. For the former you can also just user the
fulscreenmode of your browser, conventionally accessible via the F11-key.Changelog0.2 (2013-03-10)Also hide top- and footer-elements on fullscreen. [ida]Replaced bg-img with unicode-characters (arrows). [ida]0.1 (2012-01-02)Initial release
Package: adi.init
IntroductionDeletes Plone’s default contents:
- Users, news, events and front-pageDeletes Plone’s default portlets:
- Navigation, events and newsChangelog0.4 (2012-12-02)Pypi release [ida]0.3 (2012-05-18)Added MAINIFEST.in [ida]0.2 (2012-05-18)Corrective release, missing files. [ida]0.1 (2012-05-17)Deletes Plone’s default portlets ‘navigation’, ‘events’ and ‘news’Deletes Plone’s default contents ‘front-page’, ‘events’, ‘news’ and ‘Members’Initial release
Package: adilo-api-client
Adilo API ClientOverviewThis is a Python client for interacting with the Adilo API.Installationpipinstalladilo-api-clientUsagefromadilo_api.adilo_apiimportAdiloAPI# Replace 'your_public_key' and 'your_secret_key' with your actual API keysapi=AdiloAPI(public_key='your_public_key',secret_key='your_secret_key')# Create a new projectproject_title='Project Title'result_create=api.create_project(title=project_title,description="Project Description",locked=False,drm=False,private=False,password="")print(result_create)# List all projectsresult_list=api.list_projects()print(result_list)Replaceyour_public_keyandyour_secret_keywith your actual API keys. Customize the project_title and other parameters according to your needs.API DocumentationFor more details on the Adilo API, refer to theofficial documentation.ContributingIf you would like to contribute to this project, please open an issue or submit a pull request.TestingCopy and rename.env.sampleto.envCopy the API Key and API Secret fromAdilo API Settingto.envYou can run your tests using:python-munittesttests/test_adilo_api.pyLicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: ad-interface-functions
DescriptionThis repository provides some interface functions we frequently use in our trajectory planning software stack at FTM/TUM.
Next to the simple UDP interface we also use ZeroMQ (http://zeromq.org/) and its Python bindings PyZMQ.List of componentsudp_export: UDP export function.udp_import: UDP import function.zmq_export: ZMQ export function handling pyobj, json, str.zmq_import: ZMQ import function handling pyobj, json, str.zmq_import_poll: ZMQ import function handling pyobj with polling option.Contact persons:Alexander Heilmeier,Tim Stahl.
Package: adios4dolfinx
ADIOS2Wrappers for DOLFINxRead Latest DocumentationThis is an extension forDOLFINxto checkpoint meshes, meshtags and functions usingADIOS2.The code uses the adios2 Python-wrappers to write DOLFINx objects to file, supporting N-to-M (recoverable) and N-to-N (snapshot) checkpointing.
See:Checkpointing in DOLFINx - FEniCS 23for more information.For scalability, the code usesMPI Neighbourhood collectivesfor communication across processes.InstallationDockerADIOS2 is installed in the official DOLFINx containers.dockerrun-ti-v$(pwd):/root/shared-w/root/shared--name=dolfinx-checkpointghcr.io/fenics/dolfinx/dolfinx:nightlyCondaTo use with conda (DOLFINx release v0.7.0 works with v0.7.2 of ADIOS4DOLFINx)condacreate-ndolfinx-checkpointpython=3.10
condaactivatedolfinx-checkpoint
condainstall-cconda-forgefenics-dolfinxpipadios2
python3-mpipinstallgit+https://github.com/jorgensd/adios4dolfinx@v0.7.2FunctionalityDOLFINxReading and writing meshes, usingadios4dolfinx.read/write_meshReading and writing meshtags associated to meshesadios4dolfinx.read/write_meshtagsReading checkpoints for any element (serial and parallel, arbitrary number of functions and timesteps per file). Useadios4dolfinx.read/write_function.[!IMPORTANT]For a checkpoint to be valid, you first have to store the mesh withwrite_mesh, then usewrite_functionto append to the checkpoint file.[!IMPORTANT]A checkpoint file supports multiple functions and multiple time steps, as long as the functions are associated with the same mesh[!IMPORTANT]Only one mesh per file is allowedBackwards compatibility[!WARNING]
If you are using checkpoints written withadios4dolfinx<0.7.2please use thelegacy=Trueflag for reading in the checkpoint with
with any newer versionLegacy DOLFINOnly checkpoints forLagrangeorDGfunctions are supported from legacy DOLFINReading meshes from the DOLFIN HDF5File-formatReading checkpoints from the DOLFIN HDF5File-format (one checkpoint per file only)Reading checkpoints from the DOLFIN XDMFFile-format (one checkpoint per file only, and only uses the.h5file)See theAPIfor more information.Long term planThe long term plan is to get this library merged into DOLFINx (rewritten in C++ with appropriate Python-bindings).
Package: adi-parser
adi_parserThis is a simple utility package, originally to parse.adi filesfromLoTW, but now from anywhere.By default, adi_parser parsesLoTW .adi arguments.
You can optionally parseall arguments as a python dictionary.ExamplesParsing in LoTW .adi formatfromadi_parserimportparse_adiadi_header,qso_reports=parse_adi("path/to/your_data.adi")Whereadi_header: Headerandqso_reports: list[QSOReport].
These are dataclasses, which are defined inadi_parser.dataclasses.All dataclass values are assumed to be missing by default.BothGRIDSQUAREandMY_GRIDSQUAREare converted to lat/lat withmaidenhead.Parsing all arguments from a .adifromadi_parserimportparse_adiresult=parse_adi("path/to/your_data.adi",return_type=dict)Where the result dictionary follows this format:result={"header":{"full_text":str,"argument_1":str,"argument_2":str,...},"qso_reports":[{"full_text":str,"argument_1":{"value":str,"length":int,"type":str|None,"comment":str|None,},"argument_2":{...},...},...]}
Package: adi.playlist
IntroductionA Plone add-on to turn a folder holding audio-files into a playlist.UsageFill a folder with audiofiles, select ‘adi_playlist’ of the “Display”-dropdown-menu to change the view of the folder and a playlist will be shown.Default behaviour is to play the list until its end, one track after another, optionally click the inifinity-symbol to play the list infinitely in a loop.You can use the space-bar to play/pause the current track, the tab-key to walk through the tracks and Enter-key for starting the selected track.MotivationMy dear sister Angela, who likes to turn the tables and wanted a non-proprietary solution to have her sets “in the cloud” with a decent player avaible right away.BackgroundThis product takes advantage of browser-native audio-players, using the audio-tag introduced with HTML5 and the fact that all major browsers support this by now, dropping the need to provide a serverside-player.However there are restrictions of supporting all of the possible audio-file-formats, depending on the browser’s capabilities or choosen lack of support.The add-on was written to use in conjunction with OGG-formats (‘.ogg’-extension), expressing the love of the author for open (=non-proprietary) standards, dropping support to Safari, the only major-browser not supporting Vorbis.This leaves out support for Safari, yet it should be fairly easy enough extending this add-on to hold each track in two formats, the other satisfying Safari and distinct which format to use, by checking which browser the client uses.Used techniqueECMAscriptAuthorIda Ebkes, 2014, <contact@ida-ebkes.eu>CreditsjQuery, which made writing this a breeze.FurthermoreHave a look at collective.transcode.star, if you want your arbitrary audio-formats transformed to OGG-format (or another) during upload, using beloved ffmpeg.Changelog0.3 (2014-06-22)Adjust MANIFEST and remove trash.0.2 (2014-06-22)Add MANIFEST.in and repo-url.0.1 (2014-06-20)Initial release
Package: adi-reader
adinstruments_sdk_pythonUse this code to read .adicht (Labchart) files into Python. Interfacing with the ADIstruments DLL is done viacffi.The code utilizes the SDK from ADIstruments to read files in Python as NumPy arrays.Currently only works for Windows.A slightly more flushed out Matlab version can be foundhere.Installationpip install adi-readerTest codeimportadif=adi.read_file(r'C:\Users\RNEL\Desktop\test\test_file.adicht')# All id numbering is 1 based, first channel, first block# When indexing in Python we need to shift by 1 for 0 based indexing# Functions however respect the 1 based notation ...# These may vary for your file ...channel_id=2record_id=1data=f.channels[channel_id-1].get_data(record_id)importmatplotlib.pyplotaspltplt.plot(data)plt.show()DependenciescffiNumPyPython 3.6-3.9Setup for other Python versionsRunning the code might require compiling the cffi code depending on your Python version.This requires running cffi_build.py in the adi package.This might require installing cffi as well as some version of Visual Studio.The currently released code was compiled for Python 3.6-3.9 on Visual Studio 14.0 or greater was required.For upgrading to 3.8, I installed Python 3.8. Within the interpreter I ran the following:Jim note to self, rather than installing Anaconda I simply:download Python fromhttps://www.python.org/downloads/windows/cd to Python directory or run directly, these go to something like:C:\Users\RNEL\AppData\Local\Programs\Python\Python39-32\pythonNote the above path is specific to my computer, might need to change user nameimportsubprocessimportsys#https://stackoverflow.com/questions/12332975/installing-python-module-within-codedefinstall(package):subprocess.call([sys.executable,"-m","pip","install",package])install("cffi")importos#This would need to be changed based on where you keep the codeos.chdir('G:/repos/python/adinstruments_sdk_python/adi')# For 64 bit windowsexec(open("cffi_build.py").read())# For 32 bit windowsexec(open("cffi_build_win32.py").read())ImprovementsThis was written extremely quickly and is missing some features. Feel free to open pull requests or to open issues.