Saravanan666/pypi-org huggingface dataset:
Package: acs_student_mail_harvester
AboutConsole app and Python API for harvesting email addresses of ourACSstudents during their first week of ACS lab coursework.Instructions for teaching assistantsThese steps should be performed with your every student group, at the very
start of their first week in the ACS labs:Copy theexamples/student-info.inifile intoispitni_materijaliA/.eXXXXX/andispitni_materijaliB/.eXXXXX/Ask the administrator to switch the lab to the “exam” mode (aka “provera”)Wait for all of the students to loginInstruct the students to:Locate thestudent-info.inifile in their$HOME/$STUDENT_IDdirectoryUpdate the contents of the file with their own informationSave the file and close the editorLogoutAsk the administrator to collect the exam.tararchive and switch the lab
to the “normal” modePlease send your collected exam archives to your professors as soon as you can.InstallationTo install acs_student_mail_harvester run:$ pip install acs_student_mail_harvesterConsole app usageQuick start:$ acs_student_mail_harvester students.csv --tar-path=examples/Show help:$ acs_student_mail_harvester --helpPython API usageQuick start:>>> from acs_student_mail_harvester import get_student_info, store_results_to
>>> student_info = get_student_info('examples/')
>>> store_results_to('students.csv', student_info)ContributeIf you find any bugs, or wish to propose new featuresplease let us know.If you’d like to contribute, simply forkthe repository, commit your changes
and send a pull request. Make sure you add yourself toAUTHORS.
Package: acsuite-orangechannel
acsuiteaudiocutter(.py) replacement for VapourSynth.Allows for easy frame-based cutting/trimming/splicing of audio files
using VapourSynth clip information.Includes some extra tools for working with audio files or timestamps.Functions:eztrim(clip, trims, audio_file[, outfile, ffmpeg_path=, quiet=, timecodes_file=])importvapoursynthasvscore=vs.corefromacsuiteimporteztrimfile=r'/BDMV/STREAM/00003.m2ts'afile=r'/BDMV/STREAM/00003.wav'# pre-extracted with TSMuxer or similarsrc=core.lsmas.LWLibavSource(file)# for the example, we will assume the src clip is 100 frames long (0-99)trimmed_clip=src[3:22]+src[23:40]+src[48]+src[50:-20]+src[-10:-5]+src[97:]# `clip` arg should be the uncut/untrimmed source that you are trimming fromeztrim(src,[(3,22),(23,40),(48,49),(50,-20),(-10,-5),(97,None)],afile)Output:Uses the file extension of the inputaudio_fileto output a cut/trimmed audio file with the same extension. If nooutfileis given, defaults toaudio_file_cut.ext.concat(audio_files, outfile[, ffmpeg_path=, quiet=])concat(['file.aac','file2.aac'],'outfile.aac')Will concatenate a list of audio files (paths given as strings) into one file using FFmpeg.Utility Functions:f2ts(f, src_clip=[, precision=, timecodes_file=])Useful for finding the timestamp for a frame number.fromfunctoolsimportpartialimportvapoursynthasvscore=vs.coreclip=core.std.BlankClip()ts=partial(f2ts,src_clip=clip)ts(5),ts(9),ts(clip.num_frames),ts(-1)# ('00:00:00.208', '00:00:00.375', '00:00:10.000', '00:00:09.958')clip_to_timecodes(src_clip)Returns a list of timecodes for VFR clips. Used as a fallback whentimecodes_fileis not given tof2tsoreztrim.Getting StartedDependenciesFFmpegVapourSynth R49+InstallingArch LinuxInstall theAUR packagevapoursynth-tools-acsuite-gitwith your favorite AUR helper:$yay-Svapoursynth-tools-acsuite-gitGentoo LinuxInstall via theVapourSynth portage tree.Windows / OtherUse thePython Package Index (PyPI / pip):python3-mpipinstall--user--upgradeacsuite-orangechannelor simplypipinstallacsuite-orangechannelif you are able to use apipexecutable directly.Help!Check out thedocumentationor use Python's builtinhelp():help('acsuite')
Package: act4
ActLibrary for dynamic functional programming and more.Enter this command and go to thedocumentation:pip install act4OverviewfromtypingimportOptional,Callablefromactimport*defdivision_between(a:int,b:int)->int|bad[str]:ifa==0orb==0:returnbad("division by zero")returna/bWithNumber=type(number=N)WithMultiplication=type(multiplication=M)WithDivision=type(division=D)Result=WithMultiplication[N]&WithDivision[N]@fbind_by(...|then>>on(None,bad("something is missing")))@do(maybe,optionally,for_input=optionally)deffunc(do:Do,a:WithNumber[Optional[int]],b:WithNumber[Optional[int]])->Result[int]:maybe,optionally=dofirst_number=optionally.same(a.number)second_number=optionally.same(b.number)division=maybe(division_between)(first_number,second_number)multiplication=first_number*second_numberreturnResult(multiplication,division)# As a result, `func` has this type.func:Callable[[Optional[WithNumber[Optional[int]]],Optional[WithNumber[Optional[int]]]],Result[int]|bad[str],]assertfunc(WithNumber(16),WithNumber(2))==obj(multiplication=32,division=8)assertfunc(WithNumber(16),WithNumber(0))==bad("division by zero")assertfunc(WithNumber(16),WithNumber(None))==bad("something is missing")assertfunc(WithNumber(16),None)==bad("something is missing")classRawResult:def__init__(self,multiplication:int,division:int)->None:self.multiplication=multiplicationself.division=divisionassert(Result(32,8)==RawResult(32,8)==WithMultiplication(32)&WithDivision(8)==obj(multiplication=32,division=8))
Package: actable
NOTE:Presentlyonlysupports Python 3.5+ and Django 1.9+ (seeissue
#1)Activity stream for Python Django. Unlike other activity streams, it is much
more flexible, with every event designed to supporting an arbitrary number of
associated objects. It also is designed to be unobtrusive: Any of your models
can be registered as an activity generator, all you need to do is generate a
data structure for context, or an HTML fragment.FeaturesVery easily / magically integrated into an existing system, with signals
being auto-generated based on principle objectsArbitrary number of objects can be associated with every eventFast look ups with denormalized events (no joins)Looking up streams for particular actors or objectsDecent test coverageHandy Paginator helper class to page through streamExample projectNot yet implemented:FollowQuick startOverview:Install actable and put in requirements fileAdd to INSTALLED_APPS3. Pick several important models to implement the actable interface so that
every save or update generates an eventAdd those models to ACTABLE_MODELSUse helper classes to add a streams to your viewsInstall:pipinstallactableAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'actable.apps.ActableConfig',...)Pick one or more models to be your actable models. Whenever these models are
updated or created, it will generate events. These events can involve any
number of other objects.You must implement at least 2 methods on your actable models. The first method
isget_actable_relationswhich must return a dictionary where all the
values are model instances that are related to this action.  Instead of
limiting yourself to “Actor, Verb, Object”, this allows you to have any number
of relations.  Each one of these model instances will receive a copy of this
event to its activity stream.Example:classProjectBlogPost:defget_actable_relations(self,event):return{'subject':self.user,'object':self,'project':self.project,}Now you must choose one of 2 other methods to implement. These constitute the
data to cache for each event.The most versatile of the two is one that returns a dictionary containing
entirely simple (serializable) data types. This will be stored in serialized
form in your database.Example:classProjectBlogPost:defget_actable_json(self,event):verb='posted'ifevent.is_creationelse'updated'return{'subject':self.user.username,'subject_url':self.user.get_absolute_url(),'object':self.title,'object_url':self.get_absolute_url(),'project':self.project.title,'verb':verb,}The other option is caching an HTML snippet (string) that can be generated any
way you see fit.Example:classProjectBlogPost:defget_actable_html(self,event):return'<a href="%s">%s</a> wrote%s'%(self.user.get_absolute_url(),self.user.username,self.title)Finally, you should list your newly improved as anACTABLE_MODEL, as such:ACTABLE_MODELS=['myapp.ProjectBlogPost',]CreditsTools used in creating this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-11-10)First release on PyPI.
Package: act-admin
ACT AdminIntroductionThis package should only be used with act-api, act-workers, act-types at version 2.x.x.This package contains management utilities for theACT Platform.Changelog2.1.0Support forindexOptionfor Daily/TimeGlobal indices in the platform. Use--no-index-optionas argument toact-typesto bootstrap legacay platforms without this feature.InstallationThis project requires that you have a running installation of theact-platform.Install from pippipinstallact-adminact-originusage$act-origin--act-baseurl<BASEURL>--user-id<USERID>--add
Originname:myorigin
Origindescription:MyTestOrigin
Origintrust(float0.0-1.0.Default=0.8):
Originorganization(UUID):[2019-11-1110:46:22]app=origin-clientlevel=INFOmsg=Createdorigin:myorigin
Originadded:
Origin(name='myorigin',id='e5a9792e-78c7-4190-9275-27616be47ca8',organization=Organization(),description='My Test Origin',trust=0.8)act-types usageTo bootstrap the type system with default types (userid/act-baseurl must point to ACT installation):act-types \
    --user-id 1 \
    --act-baseurl http://localhost:8888 \
    --loglevel ERROR \
    --default-object-types \
    --default-fact-types \
    --default-meta-fact-types \
    --addIt is safe to rerun the command above, after new types have been added to the data model.You can also add types from your own files, using --object-types-file, --fact-types-file and --meta-fact-types-file that points to a json file on the same format as thedefault types.To show default types (replace with fact/meta-fact for other types):act-types--default-object-typeslistLocal developmentUse pip to install inlocal development mode. act-types (and act-api) uses namespacing, so it is not compatible with usingsetup.py installorsetup.py develop.In repository, run:pip3install--user-e.It is also necessary to install in local development mode to correctly resolve the files that are read by the--default-*options when doing local changes. These are read from etc under act.types and if the package is installed with "pip install act-types" it will always read the files from the installed package, even though you do changes in a local checked out repository.
Package: actag
AcTag: Opti-Acoustic Fiducial Markers for Underwater Localization and MappingAcTag is a novel opti-acoustic fiducial marker that can be detected in both optical and acoustic images. When seen through an imaging sonar, AcTags provide the unique identification of four individual landmarks per tag, and provide relative range and azimuth values to each landmark. When seen with a camera, AcTags provide a valid 6-DOF pose estimate through the use of theapriltagrepository. In addition, AcTags are cheap, easy to manufacture, and can be easily detected with this open-source repository. Therefore, we believe that AcTag has significant potential to improve underwater robotic localization and mapping by enabling accurate tracking of objects in underwater environments.DocumentationDocumentation on this repository can be found onRead the Docs. Please see theQuickstartguide for a quick overview into detecting AcTags.Contact UsFor questions or inquiries, feel free to reach out to the team:Kalin NormanDaniel ButterfieldFrost Lab
Package: actchain
actchain: Asynchronous Crypto Trading ChainInstallationpipinstallactchainRequires Python 3.11 or higher.Usage# An example of using actchain to compute the weighted mid price of the order bookfromtypingimportAsyncGeneratorimportasyncioimportactchainimportccxt.proasccxt_proasyncdefloop_binance_orderbook()->AsyncGenerator[dict,None]:exchange=ccxt_pro.binance()whileTrue:yieldawaitexchange.watch_order_book("BTC/USDT")asyncdeforder_book_feature_computation(event:actchain.Event)->dict:best_ask=event.data["asks"][0]best_bid=event.data["bids"][0]w_mid=(best_ask[0]*best_ask[1]+best_bid[0]*best_bid[1])/(best_ask[1]+best_bid[1])mid=(event.data["asks"][0][0]+event.data["bids"][0][0])/2return{"w_mid":w_mid,"mid":mid}asyncdefmain()->None:flow=(actchain.Flow("main").add(actchain.Loop(loop_binance_orderbook).as_chain()).add(actchain.Function(order_book_feature_computation).as_chain()).add(actchain.Function(lambdaevent:print(event.data)).as_chain()))awaitflow.run()if__name__=="__main__":asyncio.run(main())
Package: actcrm-python
actcrm-pythonAct! CRM API wrapper written in pythonBatchbook-pythonBatchbook API wrapper written in python.Installingpip install actcrm-pythonUsageSimple access with API KEYfrom actcrm.client import Client
client = Client('API_KEY', 'DEVELOPER_KEY')Create a contactclient.create_contact()Or you can specify what you want to send. Every field must be a string.client.create_contact(firstName='Jhon', lastName='Snow', mobilePhone='0000000')Get Contactsclient.get_contacts()You can use OData query parameter to filter the contactsclient.get_contacts(top=1, order_by='created desc', filter='. . .')Get an specific contactclient.get_contact(contact_id)Delete an specific contactclient.delete_contact(contact_id)You can do the same with opportunitiesclient.create_opportunity()Get Metadataclient.get_metadata()Requirements-Requests
-UrllibTODOCalendarCampaignsContactActivitiesEmarketingGroups Show/Hide List Operations Expand OperationsInteractionsTodosUserInfos
Package: actdiag
actdiaggenerate activity-diagram image file from spec-text file.FeaturesGenerate activity-diagram from dot like text (basic feature).Multilingualization for node-label (utf-8 only).You can get some examples and generated images onblockdiag.com.SetupUse easy_install or pip:$ sudo easy_install actdiag

Or

$ sudo pip actdiagspec-text setting sampleFew examples are available.
You can get more examples atblockdiag.com.simple.diagsimple.diag is simply define nodes and transitions by dot-like text format:diagram {
  A -> B -> C;
  lane you {
    A; B;
  }
  lane me {
    C;
  }
}UsageExecute actdiag command:$ actdiag simple.diag
$ ls simple.png
simple.pngRequirementsPython 3.7 or laterblockdiag 1.5.0 or laterfuncparserlib 0.3.6 or laterreportlab (optional)wand and imagemagick (optional)setuptoolsLicenseApache License 2.0
Package: actfw
DEPRECATEDActcast Application Framework for PythonThis package provides a Python API for developing Actcast apps.This framework has moved intoactfw-core&actfw-raspberrypisince v1.4.0.This package only providesactfwmodule name, which interally binds submodules inactfw_coreandactfw_raspberrypi.DocumentAPI ReferencesUsageConstruct your application with a task parallel modelApplicationactfw.Application: Main applicationWorkersactfw.task.Producer: Task generatoractfw.capture.PiCameraCapture: Generate CSI camera capture imageactfw.capture.V4LCameraCapture: Generate UVC camera capture imageactfw.task.Pipe: Task to Task converteractfw.task.Consumer: Task terminatorEach worker is executed in parallel.User shouldDefine subclass ofProducer/Pipe/ConsumerclassMyPipe(actfw.task.Pipe):defproc(self,i):...Connect defined worker objectsp=MyProducer()f1=MyPipe()f2=MyPipe()c=MyConsumer()p.connect(f1)f1.connect(f2)f2.connect(c)Register toApplicationapp=actfw.Application()app.register_task(p)app.register_task(f1)app.register_task(f2)app.register_task(c)Execute applicationapp.run()
Package: actfw-core
actfw-coreCore components of actfw, a framework for Actcast Application written in Python.
actfw-core is intended to be independent of any specific device.Installationsudo apt-get updatesudo apt-get install -y python3-pip python3-pilsudo apt-get install -y libv4l-0 libv4lconvert0  # if using `V4LCameraCapture`pip3 install actfw-coreDocumentAPI ReferencesUsageConstruct your application with a task parallel modelApplicationactfw_core.Application: Main applicationWorkersactfw_core.task.Producer: Task generatoractfw_core.capture.V4LCameraCapture: Generate UVC camera capture imageactfw_core.task.Pipe: Task to Task converteractfw_core.task.Consumer: Task terminatorEach worker is executed in parallel.User shouldDefine subclass ofProducer/Pipe/ConsumerclassMyPipe(actfw_core.task.Pipe):defproc(self,i):...Connect defined worker objectsp=MyProducer()f1=MyPipe()f2=MyPipe()c=MyConsumer()p.connect(f1)f1.connect(f2)f2.connect(c)Register toApplicationapp=actfw_core.Application()app.register_task(p)app.register_task(f1)app.register_task(f2)app.register_task(c)Execute applicationapp.run()Development GuideInstallation of dev requirementspip3 install poetrypoetry installRunning testspoetry run pytest -vReleasing package & API docCI will automatically do.
Follow the following branch/tag rules.Make changes for next version inmasterbranch (via pull-requests).Make a PR that updates version inpyproject.tomland merge it tomasterbranch.Create GitHub release frommasterbranch's HEAD.Draft a new release.Create new tag namedrelease-<New version>(e.g.release-1.4.0) fromChoose a tagpull down menu.Write title and description.Publish release.Then CI will build/upload package to PyPI & API doc to GitHub Pages.
Package: actfw-jetson
actfw-jetsonactfw's components for Jetson series.
actfw is a framework for Actcast Application written in Python.Installationsudo apt-get updatesudo apt-get install -y python3-pip python3-pil#InstallGStreamerdependencies(somecomponentsinactfw-jetsonusesGStreamerinimplementation)sudo apt-get install -y libgstreamer1.0-dev libgirepository1.0-dev ibgstreamer-plugins-base1.0-dev libglib2.0-dev libcairo2-devpip3 install actfw-jetsonDocumentAPI ReferencesUsageSeeactfw-corefor basic usage.Since actfw-jetson uses GStreamer to implement some components, an application using actfw-jetson may have to initialize GStreamer library before using actfw-jetson's components.if__name__=='__main__':importgigi.require_version('Gst','1.0')fromgi.repositoryimportGstGst.init(None)main()actfw-jetson provides:actfw_jetson.Display: Display usingnvoverlaysinkelement inNVIDIA's Accelerated GStreamer.Exampleexample/hello_jetson: The simplest application example for JetsonUse HDMI display as 1280x720 areaGenerate 1280x720 single-colored imageDraw "Hello, Actcast!" textDisplay it as 1280x720 imageNotice message for each frameSupport application heartbeatSupport "Take Photo" commandDepends: fonts-dejavu-coreDevelopment GuideInstallation of dev requirementscurl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -poetry installRunning testspoetry run nose2 -vRunning exampleshello_jetsonDisplays a red rectangle and greeting text on it on HDMI display.Run on a Jetson Nano connected to HDMI display:apt-get install fonts-dejavu-corepoetry run python example/hello_jetsoncamera_displayDisplays camera input on HDMI display.Run on a Jetson Nano with CSI camera and HDMI display:poetry run python example/camera_displayReleasing package & API docCI will automatically do.
Follow the following branch/tag rules.Make changes for next version inmasterbranch (via pull-requests).Updateversionfield inpyproject.tomlwith new version inmasterbranch.Create GitHub release frommasterbranch's HEAD.Draft a new release.Create new tag namedrelease-<New version>(e.g.release-1.4.0) fromChoose a tagpull down menu.Write title and description.Publish release.Then CI will build/upload package to PyPI & API doc to GitHub Pages.
Package: actfw-raspberrypi
actfw-raspberrypiactfw's components for Raspberry Pi.
actfw is a framework for Actcast Application written in Python.Installationsudo apt-get updatesudo apt-get install -y python3-pip python3-pilpip3 install actfw-raspberrypiDocumentAPI ReferencesUsageSeeactfw-corefor basic usage.actfw-raspberrypi provides:actfw_raspberrypi.capture.PiCameraCapture: Generate CSI camera capture imageactfw_raspberrypi.Display: Display using PiCamera Overlayactfw_raspberrypi.vc4.Display: Display using VideoCore IVactfw_raspberrypi.vc4.Window: Double buffered windowExampleexample/hello: The most simple application exampleUse HDMI display as 640x480 areaCapture 320x240 RGB image from CSI cameraDraw "Hello, Actcast!" textDisplay it as 640x480 image (with x2 scaling)Notice message for each frameSupport application settingSupport application heartbeatSupport "Take Photo" commandDepends: python3-picamera fonts-dejavu-coreexample/grayscale: Next level application exampleUse HDMI display as 640x480 areaCapture 320x240 RGB image from CSI cameraConvert it to grayscaleDisplay it as 640x480 image (with x2 scaling)Notice message for each frameSupport application settingSupport application heartbeatSupport "Take Photo" commandDepends: python3-picameraexample/parallel_grayscale: Paralell processing application exampleUse HDMI display as 640x480 areaCapture 320x240 RGB image from CSI cameraConvert it to grayscaleThere exists 2 converter taskRound-robin task schedulingDisplay it as 640x480 image (with x2 scaling)Notice message for each frameShow which converter processes imageSupport application settingSupport application heartbeatSupport "Take Photo" commandDepends: python3-picameraexample/uvccamera: UVC camera capture examplepicamerais unnecessaryUse HDMI display center 640x480 areaCapture 320x240 RGB image from UVC cameraConvert it to grayscaleDisplay it as 640x480 image (with x2 scaling)Notice grayscale pixel data histogramSupport application settingSupport application heartbeatSupport "Take Photo" commandDepends: libv4l-0 libv4lconvert0Development GuideInstallation of dev requirementspip3 install poetrypoetry installRunning testspoetry run nose2 -vRunning examplesOn a Raspberry Pi connected to HDMI display:poetry run python example/helloReleasing package & API docCI will automatically do.
Follow the following branch/tag rules.Make changes for next version inmasterbranch (via pull-requests).Make a PR that updates version inpyproject.tomland merge it tomasterbranch.Create GitHub release frommasterbranch's HEAD.Draft a new release.Create new tag namedrelease-<New version>(e.g.release-1.4.0) fromChoose a tagpull down menu.Write title and description.Publish release.Then CI will build/upload package to PyPI & API doc to GitHub Pages.
Package: actiapi
This library isonlymeant to serve as an example of how to use ActiGraph’s API to
retrieve data from ActiGraph devices.Please refer to official API documentation
(https://github.com/actigraph/StudyAdminAPIDocumentationandhttps://github.com/actigraph/CentrePoint3APIDocumentation).Please do not contact ActiGraph support for questions related to this library. You can
create issues on this repository and we’ll do our best to help you.ExampleMetadata>>> from actiapi.v3 import ActiGraphClientV3
    api_client = ActiGraphClientV3(<api_access_key>, <api_secret_key>)
    metadata = api_client.get_study_metadata(<study_id>)
    metadata = {x["id"]: x for x in metadata}Raw data>>> from actiapi.v3 import ActiGraphClientV3
    api_client = ActiGraphClientV3(<api_access_key>, <api_secret_key>)
    results: List[str] = api_client.get_files(
        user=<user_id>, study_id=<self.study_id>
    )
Package: actinfrictionpy
Supporting python modules for dynamics analysis in "Constriction of actin rings by passive crosslinkers"Python package for the dynamics analysis ofRef. 1.This package is primarily for creating plots for the solutions of differential equations that are solved with another package, (ActinFriction.jl).InstallationThis package was developed and used on Linux.It is available on the PyPI respository.
It can be installed by runningpip install actinfrictionpyIf you are not using a virtual environment, the--userflag may be used instead to install it locally to the user.
To install directly from this repository, runpython -m build
pip install dist/actinfrictionpy-[current version]-py3-none-any.whlTo run the above, it may be necessary to update a few packages:python3 -m pip install --upgrade pip setuptools wheelFor more information on building and installing python packages, see the documentation from thePython Packaging Authority.References[1] A. Cumberworth and P. R. ten Wolde, Constriction of actin rings by passive crosslinkers,arXiv:2203.04260 [physics.bio-ph].LinksPython Packaging AuthorityActinFriction.jlReplication package Ref. 1