Saravanan666/pypi-org huggingface dataset:
Package: actinia-api
API docs for actinia-core and plugins!OpenAPI is a project used to describe and document RESTful APIs.
actinia is using swagger2, version upgrade is on the agena.In this repository all API docs should be collected. This way,
the release of the API is not interconnected with the source
code repositories anymore but independent versioning is used.Currently, the migration is still in progress and the API docs
can be found here or still in the corresponding source code
repository.
Package: actinia-python-client
actinia-python-clientPython Client Library foractinia.InstallationThe client is available athttps://pypi.org/project/actinia-python-client/pip3installactinia-python-clientFor newest version seereleases.Condaactinia-python-client is automatically packaged onconda-forge / actinia-python-client-feedstock.Small ExampleSeeexamples
Package: actinrings
Supporting python modules for equilibrium analysis in "Constriction of actin rings by passive crosslinkers"Python package for the equilibrium analysis ofRef. 1.It includes a module implementing the equilibrium model, as well as a module for creating plots with this model, as well as plots from finite element calculations output from a related package (elastic-rings) and plots from Monte Carlo simulations from another related package (ActinRingsMC.jl).Some example scripts for creating plots are provided in thescriptsdirectory.InstallationThis package was developed and used on Linux.It is available on the PyPI respository.
It can be installed by runningpip install actinringsIf 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/actinrings-[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 Authorityelastic-ringsActinRingsMC.jlReplication package Ref. 1
Package: actionai
ActionAIA small library to run local functions using the openai function callingWarningThis library is still in its early stages, so please use it cautiously. If you find any bugs, please create a new issue.InstallpipinstallactionaiUsageNoteA function must be fully typed and must have a docstring# define a new functiondefget_current_weather(location:str,unit:str="fahrenheit"):"""Function to get current weather for the given location"""weather_info={"location":location,"temperature":"72","unit":unit,"forecast":["sunny","windy"],}returnweather_infoimportactionaiaction=actionai.ActionAI()action.register(get_current_weather)response=action.prompt("What is the current weather in the north pole?")print(response["choices"][0]["message"]["content"])# The current weather at the North Pole is 72°F. It is sunny and windy.The openai api key will be read automatically from theOPENAI_API_KEYenvironment variable. You can pass it manually as,importactionaiaction=actionai.ActionAI(openai_api_key="YOUR_KEY")Adding contextSometimes your function will have variables that need to be set by the program.deflist_todos(user:str):"""Function to list all todos"""returntodos[user]action=actionai.ActionAI(context={"user":"jason"})The context keys are skipped when creating json schema. The values are directly passed at the time of the function call.Choosing a modelBy default, the completion run on thegpt-3.5-turbo-0613model. You can change the model using themodelargument.importactionaiaction=actionai.ActionAI(model="gpt-4")You can see the complete list of supported chat completion modelshereDemoRunningtodo example👇🏻For more examples, check out theexamplesdirectory.
Package: actionbar.babble
Introductionactionbar.babble is the Babble chat client integration package for
the ActionBar, an extensible floating panel with links at the
bottom of your Plone site.For more information regarding Babble and ActionBar, please see their
respective packages: babble.client, babble.server and actionbar.panel.Additional info:For additional info, please read the documentation athttp://opkode.net/babbledocs/actionbar.babble/index.htmlChangelog0.2 (2011-10-05)Add timestamp support. [jcbrand]0.1b2 (2011-04-04)Fixed an IE javascript bug #2038 [deroiste]0.1b1 (2011-01-18)Added support for babble.client 1.4 [jcbrand]0.1a3 (2010-04-28)Fixed for ajax calls in the context of portal_factory [jcbrand]Tweak babblefeeder.css to be loaded after chat.css [jcbrand]Fixed AJAX call problems [jcbrand]0.1a2 (2010-04-08)Tweaked jsregistry.xml to gain Plone3 compatibility [jcbrand]0.1a1 (2010-04-08)Initial release [jcbrand]
Package: actionbar.panel
Introductionactionbar.panel provides an admin/action panel at the bottom of your Plone
site, similar to the one used on the now old facebook style.I took a lot of the css from Soh Tanaka’s excellent tutorial:
*http://www.sohtanaka.com/web-design/facebook-style-footer-admin-panel-part-1/Adding new actions:The actionbar is fully extendible. It is a viewlet manager, with the name
‘actionbar.panel’. This means that you can add new actions and links to the
panel by creating and registering viewlets for it in your own Plone add-ons.See actionbar/panel/browser/configure.zcml for widget registrations.If you want to publish eggs with add-on actions for the actionbar, please consider
releasing them under the actionbar.* namespace.Installing:actionbar.panel should be a ‘drop-in’ installation. Just add ‘actionbar.panel’
to your eggs section in your buildout.cfg. Then use Plone’s control panel, or
the portal_quickinstaller in the Zope management interface to install the
package.Once you’ve done this, the panel and some default actions should be visible in
Plone.Configuring:You can hide or rearrange the actions on the panel. You can also hide the
entire panel itself. To do this, go to the viewlet managent screen by appending
‘/@@manage-viewlets’ to the root URL of your Plone site. The panel
viewlet manager and its actions will be near the bottom of the page.Compatibility:actionbar.panel has been tested on Plone 4 and Plone 3.3.5.
It should work on older versions of Plone 3 as well.Icons:The icons used in this release were created by Liam McKay
(http://wefunction.com/) and are released under the GPL.http://www.woothemes.com/2009/09/woofunction-178-amazing-web-design-icons/Contact:Please contact me if you have any questions, compatibility problems or improvement suggestions.brand at syslab dot comChangelog1.2.1 (2010-10-01)Adding some padding so that the overlay won’t hide lower borders
of overlays [do3cc]1.2 (2010-05-05)Fixed the ‘User Profile’ widget to point to the login_form when view
anonymously [jcbrand]1.1 (2010-03-23)Fixed the package name in the INSTALL.txt and LICENSE.txt files [jcbrand]1.0 (2010-03-18)Initial release [jcbrand]
Package: actiondb
# Welcome to ActionDB*The database that doesn't wait for you, it **goes**.*![MyPy](https://img.shields.io/badge/MyPy-Passing-blue.svg)![Flake8](https://img.shields.io/badge/Flake8-Pep%208-brightgreen.svg)[![Build Status](https://travis-ci.org/Zwork101/actionDB.svg?branch=master)](https://travis-ci.org/Zwork101/actionDB)Full docs [here](https://zwork101.github.io/action/)## IntroductionWelcome to actionDB, the DB that comes to you. ActionDB is designed to keep events that need to be summoned at a laterdate persistent. Personally, this will be used when I make discord bots viahttps://github.com/b1naryth1ef/disco. However this doesn't mean youcan't use this with anything else, you can, and I highly encourage that you do. While this library was designed so thatyou could easily create and use your own backend, you're welcome to use the sqlite3 backend that comes with it. Lastly,I was to talk about what's planned. At some point, I want to do some major refactoring, and separate the client andserver. This would allow you connect to a remote database, something that's not essential but nice, but mainly usewhatever concurrency library you want. The backend will still be gevent, however the client can be asyncio, trio,threading, etc.## Quick StartTo get started, we'll need to create our client, this will also create a action.db file, however the name can bechanged when initializing:```pyfrom action import Actionaction = Action()```After this, you should add listeners to your heart's content:```py@action.listen("new_msg")def new_message(name: str, content: str, id: str=None)print(name + "\n\n" + content + "\n" + "(" + id + ")")```And if you want to do something, such as send a message in 5 minutes, you can do:```pyaction.trigger_in(5 * 60, "new_msg", "Hello World!", "My name is sam, and I live in a can", id="2323445")```Then presuming you're also doing other things, or have utilized ``gevent.joinall``, in 5 minutes you'll see:Hello World!My name is sam, and I live in a can(2323445)And that's all there is! If you want to see how you can trigger events at an exact time, or other fun stuff, see thedocumentation graciously provided below!### Note:You can import the main classes from action like so:```pyfrom action import Action, ActionBackend, ActionEmitter, Event```Happy Coding!
Package: action-graph
ActionGraphActionGraph is a symbolic AI agent for generating action plans based on preconditions and effects. This is loosely based on STRIPS approach (https://en.wikipedia.org/wiki/Stanford_Research_Institute_Problem_Solver). State variables are modeled as nodes; the actions represent edges/transitions from one state to another. Dijikstra's shortest path algorithm (A* but without the heuristic cost estimate) is used to generate a feasible, lowest cost plan.Source:https://github.com/bharathra/ACTION_GRAPHUsage:from action_graph.agent import Agent
from action_graph.action import Action


class Drive(Action):
    effects = {"driving": True}
    preconditions = {"has_drivers_license": True, "tank_has_gas": True}


class FillGas(Action):
    effects = {"tank_has_gas": True}
    preconditions = {"has_car": True}


class RentCar(Action):
    effects = {"has_car": True}

    cost = 100  # dollars


class BuyCar(Action):
    effects = {"has_car": True}
    preconditions = {}

    cost = 10_000  # dollars


if __name__ == "__main__":
    world_state = {"has_car": False, "has_drivers_license": True}
    goal_state = {"driving": True}

    ai = Agent()

    actions = [a(ai) for a in Action.__subclasses__()]
    ai.load_actions(actions)

    print("Initial State:", world_state)
    ai.update_state(world_state)

    print("Goal State:   ", goal_state)
    plan = ai.get_plan(goal_state)

    # ai.execute_plan(plan)
Package: actionkit-templates
ActionKit Template Renderer===========================### What this isIf you use [ActionKit](http://actionkit.com/) and edit its templates, then you might want to see what they look likelocally.  If you install this (`pip install actionkit-templates`) then you can runaktemplates runserverYou can also run it on a different port than the default like so:aktemplates runserver 0.0.0.0:1234in a directory where you have a set of ActionKit templates (`wrapper.html`, etc), then you canview them on from a local port.  This runs Django in a similar environment that ActionKitruns itself.Environment===========You can set some environment variables that will help you develop locally (e.g. static file versions).This is a 0.1 codebase, so things might change across versions -- probably limiting the full Djangomanage.py context and to expose those things by commandline, instead.  In the meantime, you canlook at `actionkit_templates/settings.py` and search for `os.environ` for what it does.TEMPLATE_DIR: By default we search the local directory and a directory called template_set.  If you run:TEMPLATE_DIR=actionkittemplates aktemplates runserverit will also look in the directory `actionkittemplates/`STATIC_ROOT: By default we serve the `./static/` directory at /static/  This goes well with code in yourwrapper.html template like this:```{% if args.env == "dev" or devenv.enabled or 'devdevdev' in page.custom_fields.layout_options %}<!-- development of stylesheets locally --><link href="/static/stylesheets/site.css" rel="stylesheet" />{% else %}<!-- production location of stylesheets --><link href="https://EXAMPLE.COM/static/stylesheets/site.css" rel="stylesheet" />{% endif %}```STATIC_FALLBACK: In the occasional moment when you are developing without an internet connection this will failto load:```{% load_js %}//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js{% end %}```In that situation, if you set STATIC_FALLBACK to a directory where, e.g. `jquery.min.js`is present, then it will look for all the internet-external files in that directory.Note that this only works with `load_js` and `load_css` template tags.Contributing When You Run Into Something Not Covered====================================================Template Tags-------------Usually, these are easy to add here `actionkit_templates/templatetags/actionkit_tags.py`We should aim for support of all these:https://roboticdogs.actionkit.com/docs/manual/guide/customtags.htmlExtra contexts--------------If you make a context that's not covered already, please contribute with a patch to`actionkit_templates/contexts/`  Note that these are also useful to browser, to seewhat variables you can access from a particular page context.
Package: actionpi
ActionPi [WIP]Action/Dash camera powered by Raspberry Pi ZeroIntroductionActionPi is a DIY project that gives everyone the opportunity to build an action/dash camera with a20$budget.✨ Features📽FullHDvideo recordings📥Download videoeasily using USB cable or WiFi connection💡Rolling video appenders: record video in a circular buffer, never overwrite on reboot🔨Robust design: temperature control, OS read-only partition & low latency write-to-disk (never miss a single frame on power loss)🕹3D Printable case: it's avaialble on Thingiverse🚧 Working on documentation, please bear with me 🚧DocsCheck outwikito read how to setup your personal ActionPi.Do you want to build it on your own and/or contribute?I'm currently looking for someone interested in build a prototype for personal usage and also help me in the documentation phase of this project.
Package: action-react
action-reactaction-reactis a tool that reacts to Telegram chat messages.Project BoardOverviewaction-reactspecifically listens to an account in a Telegram chat and makes corresponding http calls given the content of the message. This is inspired bytuixue.online-visa, a tool that periodically checks and publishes US consulate visa appointment availabilities across the world.A possible application of this tool is to use it to listen to a Telegram bot publishing messages about new visa appointments, and makes http calls to the consulate appointment service to grab the desired spot.InstallationInstall the library's dependencies and build the library using:pip install action-reactUsageIn your code, begin by importing the package:from action-react import mainYou can connect it to a telegram chat using:main(api_id, api_hash, phone, username, target_date, cities)For example, you can usemain("123", "hash123", "+12345678901", "username", datetime.date(2022,2,2), ["boston", "houston"])to start the function.Alternatively, you can directly runpython main.pyafter setting up the configurations inconfig.ini.
Package: actionrules-lukassykora
Action RulesAction Rules (actionrules) is an implementation of Action Rules from Classification Rules algorithm described inDardzinska, A. (2013). Action rules mining. Berlin: Springer.If you use this package, please cite:SĂ˝kora, LukĂˇĹˇ, and TomĂˇĹˇ Kliegr. "Action Rules: Counterfactual Explanations in Python." RuleML Challenge 2020. CEUR-WS.http://ceur-ws.org/Vol-2644/paper36.pdfGIT repositoryhttps://github.com/lukassykora/actionrulesInstallationpip install actionrules-lukassykoraJupyter NotebooksTitanicIt is the best explanation of all possibilities.TelcoA brief demonstration.RasBased on the example in (Ras, Zbigniew W and Wyrzykowska, ARAS: Action rules discovery based on agglomerative strategy, 2007).AttritionHigh-Utility Action Rules Mining example.Example 1Get data from csv.
Get action rules from classification rules. Classification rules have confidence 55% and support 3%.
Stable part of action rule is "Age".
Flexible attributes are "Embarked", "Fare", "Pclass".
Target is a Survived value 1.0.
No nan values.
Use reduction tables for speeding up.
Minimal 1 stable antecedent
Minimal 1 flexible antecedentfromactionrules.actionRulesDiscoveryimportActionRulesDiscoveryactionRulesDiscovery=ActionRulesDiscovery()actionRulesDiscovery.read_csv("data/titanic.csv",sep="\t")actionRulesDiscovery.fit(stable_attributes=["Age"],flexible_attributes=["Embarked","Fare","Pclass"],consequent="Survived",conf=55,supp=3,desired_classes=["1.0"],is_nan=False,is_reduction=True,min_stable_attributes=1,min_flexible_attributes=1,max_stable_attributes=5,max_flexible_attributes=5)actionRulesDiscovery.get_action_rules()The output is a list where the first part is an action rule and the second part is a tuple of (support before, support after, action rule support) and (confidence before, confidence after, action rule confidence).Example 2Get data from pandas dataframe.
Get action rules from classification rules. Classification rules have confidence 50% and support 3%.
Stable attributes are "Age" and "Sex".
Flexible attributes are "Embarked", "Fare", "Pclass".
Target is a Survived that changes from 0.0 to 1.0.
No nan values.
Use reduction tables for speeding up.
Minimal 1 stable antecedent
Minimal 1 flexible antecedentfromactionrules.actionRulesDiscoveryimportActionRulesDiscoveryimportpandasaspddataFrame=pd.read_csv("data/titanic.csv",sep="\t")actionRulesDiscovery=ActionRulesDiscovery()actionRulesDiscovery.load_pandas(dataFrame)actionRulesDiscovery.fit(stable_attributes=["Age","Sex"],flexible_attributes=["Embarked","Fare","Pclass"],consequent="Survived",conf=50,supp=3,desired_changes=[["0.0","1.0"]],is_nan=False,is_reduction=True,min_stable_attributes=1,min_flexible_attributes=1,max_stable_attributes=5,max_flexible_attributes=5)actionRulesDiscovery.get_pretty_action_rules()The output is a list of action rules in pretty text form.
Package: actions-python-core
actions-python-coreCore functions for setting results, logging, registering secrets and exporting variables across actionsUsageImport the packagefromactionsimportcoreInputs/OutputsAction inputs can be read withget_inputwhich returns astrorget_boolean_inputwhich parses a boolean based on theyaml 1.2 specification. Ifrequiredset to be false, the input should have a default value inaction.yml.Outputs can be set withset_outputwhich makes them available to be mapped into inputs of other actions to ensure they are decoupled.my_input=core.get_input("input_name",required=True)my_boolean_input=core.get_boolean_input("boolean_input_name",required=True)my_multiline_input=core.get_multiline_input("multiline_input_name",required=True)core.set_output("output_key","output_value")TBD
Package: actions-server
Actions ServerA very simple, multi-threaded HTTP server.Mainly designed for a very simple tasks, f.ex. 3 json-based endpoints with a simple logicIt utilizes a concept of "Actions" - the functions that can be executed to provide HTTP response.Important note:This server DOES NOT cover all HTTP functionality. This is intentional and probably will not be changed in the future.Usagefromactions_serverimport*ACTIONS=[JsonGet("/get",lambdaparams:{"response":"ok from GET action"}),JsonPost("/post",lambdaparams,body:{"response":"ok from POST action"}),Redirect("/","/get"),StaticResources("/static","./src/web")]server=http_server(port=80,actions=ACTIONS,thread_count=5)try:server.start(block_caller_thread=True)finally:server.stop()In this example, a server will be started on port 80 and the main thread will be blocked. The server will react on
several requests:curl -X GET "http://localhost:80/get"will produce{"response": "ok from GET action"}responsecurl -X POST "http://localhost:8080/postwill produce{"response": "ok from POST action"}responsecurl -X GET "http://localhost:80/will send HTTP 301 Redirect to `http://localhost:80/get"curl -X GET "http://localhost:80/static/aaa.pngwill return an image./src/web/aaa.pngActions out-of-the-boxJsonGet(endpoint, callable)Will listen to the endpointendpoint, callcallable(params)(where params is a dict of arguments; note - values are
always an array!) and convert resulting dict into JSONJsonPost(endpoint, callable, body)Will listen to the endpointendpoint, callcallable(params, body)(where params is a dict of arguments; note -
values are always an array!, and body is a parsed the request body into dict) and convert resulting dict into JSONRedirect(from, to)Will send HTTP 301 RedirectStaticResources(path, dir)Will server all files fromdirunder pathpathImplementing custom actionfromactions_serverimport*classMyCustomResponse(Response):def__init__(self,payload):self._payload=payloaddefheaders(self)->dict:return{'Content-type':'text/plain'}defresponse_body_bytes(self):returnself._payload.encode('utf-8')classMyCustomAction(Action):defcan_handle(self,method,path,params,payload):returnmethod=='GET'andpath=='/hello'defhandle(self,method,path,params,payload)->Response:returnMyCustomResponse("hello there!")Notes:parametermethodmay contain two strings -GETorPOSTresponse body must be bytes!
Package: actions-toolkit
Actions ToolkitThe GitHub Actions ToolKit provides an SDK to make creating actions easier in Python.InstallationAction Toolkit is available on PyPI:$python-mpipinstallactions-toolkitAction Toolkit officially supports Python 3.6+.Usage>>>importos>>>fromactions_toolkitimportcore>>>os.environ['INPUT_NAME']='Actions Toolkit'>>>core.get_input('name',required=True)'Actions Toolkit'>>>core.error('Something went wrong.')::error::Somethingwentwrong.>>>core.info('Run successfully.')Runsuccessfully.>>>core.set_failed('SSL certificates installation failed.')::error::SSLcertificatesinstallationfailed.For more examples and API documentation, please see thecore&github.ContributingContributions are always welcomed!Here are the workflow for contributors:Fork to your ownClone fork to local repositoryCreate a new branch and work on itKeep your branch in syncCommit your changes (make sure your commit message concise)Push your commits to your forked repositoryCreate a pull requestPlease refer toCONTRIBUTINGfor detailed guidelines.LicenseThe scripts and documentation in this project are released under theMIT License.