Saravanan666/pypi-org huggingface dataset:
Package: autogqlschema
A Sphinx extension for automatically documenting GraphQL schemas.Getting StartedThe following steps will walk through how to addautogqlschemato an existing Sphinx project.
For instructions on how to set up a Sphinx project,
see Sphinx’s documentation onGetting Started.Installationautogqlschemacan be installed through pip:pipinstallautogqlschemaNext, addautogqlschemato theextensionslist in your Sphinx project’sconf.py.extensions.append("autogqlschema")UsageSchema documentation is generated from GraphQL schema files using theautogqlschemadirective.In the following example, documentation is generated from ths file structure.myrepo
├── doc
│   ├── conf.py
│   └── index.rst
└── src
    └── mypackage
        ├── schema
        │   ├── __init__.py
        │   ├── 01_schema.graphql
        │   └── 02_books.graphql
        └── __init__.pyThis schema can be generated with the following reStructuredText:..autogqlschema:::root-dir:../src/mypackage/schema:source-files:*.graphqlOr:..autogqlschema:::root-dir:../src/mypackage/schema:source-files:01_schema.graphql, 02_books.graphqlFor more detailed usage, see the documentation:https://autogqlschema.readthedocs.io/en/latest/ContributingRunning the testsTests are executed throughtox.toxCode StyleCode is formatted usingblack.You can check your formatting using black’s check mode:tox-eformatYou can also get black to format your changes for you:tox-eformat--src/tests/Release NotesRelease notes are managed throughtowncrier.
When making a pull request you will need to create a news fragment to document your change:tox-erelease_notes--create--helpVersioningWe useSemVerfor versioning.
For the versions available, see thetags on this repository.LicenseThis project is licensed under the MIT License.
See theLICENSE.rstfile for details.
Package: autograde.py
Installationpip install autograde.pyModule InterfaceRun tests written withunittestagainst a specified module.
Additional options:location of tests (if not in the current directory),fallback module to run the tests against,where to save a CSV of the test results, andconfig file to specify how results are processedusage: grader [-h] [--fallback FALLBACK] [--submission SUBMISSION] [--tests TESTS]
              [--test-pattern TEST_PATTERN] [--output OUTPUT] [--log LOG] [--config CONFIG]
              path

positional arguments:
  path                  Module to grade

optional arguments:
  -h, --help            show this help message and exit
  --fallback FALLBACK   Fallback module to grade
  --submission SUBMISSION
                        Submission name to grade.
  --tests TESTS         Path of tests to run. Defaults to ./
  --test-pattern TEST_PATTERN
                        Test name pattern to match. Defaults to "test*.py"
  --output OUTPUT       Output file for report. Defaults to stdout.
  --log LOG             Log file to use. Defaults to stdout.
  --config CONFIG       Config file to use.Tests DiscoveryTests to run can be located anywhere using a combination of the--testsand--test-patternargs.
By default, they are searched for under the current directory and match thetest*.pypattern.
Tests are discovered using theunittestmodule.Running TestsWhile tests are running, the script will change to the directory ofpath.
This means that file locations in tests should be relative to the providedpath.--fallbackhelps the module determine all tests that should be run.
This is helpful when the code located atpathis untrusted and may totally fail the test discovery step.ConfigThe grader config can be specified with the--configarg. It is a json file that can specify what happens when a certain test runs or when a certain submission is graded. Individual test configs should be under the"tests"map and the key should be of the form:testFunction (test_filename.TestCaseName). Inividual submission configs should be under the"submissions"map and match the name of the submission. An example format is below:{"tests":{"testSimple1 (test_simple.TestSimpleTestCase)":{"name":"Simple Test 1","weight":2}},"names":{"submission_name":{"name":"custom label here"}}}
Package: autograder
A simple, secure, and versatile way to automatically grade programming assignmentsFeaturesBlazingly fast (can grade hundreads of submissions using dozens of testcases in a few minutes. Seconds if grading python)Easy to gradeEasy-to-write testcasesTestcase grade can be based onstudent's stdoutCan grade C, C++, Java, and Python code in regular modeCan grade any programming language in stdout-only modeA file with testcase grades and details can be generated for each studentYou can customize the total points for the assignment, maximum running time of student's program, file names to be considered for grading, formatters for checking student stdout, andso much more.Anti Cheating capabilitiesthat make it nearly impossible for students to cheatGrading submissions in multiple programming languages at onceJSON result output supported if autograder needs to be integrated as a part of a larger utilityCan check submissions for similarity (plagiarism)Can detect and report memory leaks in C/C++ codeInstallationRunpip install autograderTo grade various programming languages, you'd need to install:gcc/clangfor C/C++ supportJava JDKfor java supportmakefor compiled stdout-only testcase supportAny interpreter/compiler necessary to run stdout-only testcases. For example, testcases with ruby in their shebang lines will require the ruby interpreterUpdatespip install -U --no-cache-dir autograderQuickstartRunautograder guide path/to/directory/you'd/like/to/grade. The guide will create all of the necessary configurations and directories for grading and will explain how to grade.Read theusagesection of the docsSupported PlatformsLinux is fully supportedOS X is fully supportedWindows is partially supported:Stdout-testcases that require shebang lines are not and cannot be supportedSupported Programming LanguagesJavaCC++CPython (3.8-3.11)Any programming language if stdout-only grading is used
Package: autograder-contrib
Autograder.io ContribContains utilities for writing applications that use the autograder.io API.We recommend Amir Kamil'sautograder-toolsfor a larger collection of applications.Obtaining a TokenLog in to autograder.io in Chrome and open up the developer tools
from the Chrome menu (View->Developer->Developer Tools on a Mac).
Click on a course link. In the developer console, click on a request
(e.g. my_roles/ or projects/). Under Request Headers, there is an
Authorization entry that looks like "Token ". Copy
the hex string and save it to the file .agtoken in your home
directory.The Command Line InterfaceThis library provides a simple command line interface for sending requests:$ agcli get /api/users/current/This interface notably does not support delete requests for safety reasons. If you wish to delete something, please do so through the autograder.io website or (at your own risk) you may use the HTTPClient class described in the next section.The HTTPClientTheHTTPClientclass is a starting point for sending custom requests in Python applications.import json
from ag_contrib.http_client import HTTPClient, check_response_status

client = HTTPClient.make_default()
response = client.get('/api/users/current/')
check_response_status(response)
print(json.dumps(response.json(), indent=4))
Package: autograd-gamma
autograd-gammaautogradcompatible approximations to the derivatives of the Gamma-family of functions.Tutorialfromautogradimportgradfromautograd_gammaimportgammainc,gammaincc,gammaincln,gammaincclngrad(gammainc,argnum=0)(1.,2.)grad(gammaincc,argnum=0)(1.,2.)# logarithmic functions too.grad(gammaincln,argnum=0)(1.,2.)grad(gammainccln,argnum=0)(1.,2.)fromautograd_gammaimportbetainc,betainclngrad(betainc,argnum=0)(1.,2.,0.5)grad(betainc,argnum=1)(1.,2.,0.5)# logarithmic functions too.grad(betaincln,argnum=0)(1.,2.,0.5)grad(betaincln,argnum=1)(1.,2.,0.5)Long-term goalBuild and improve upon the derivative of the upper and lower incomplete gamma functions. Eventually, if we have a fast analytical solution, we will merge into the autograd library.
Package: autograd-lib
autograd_libBy Yaroslav Bulatov, Kazuki OsawaLibrary to simplify gradient computations in PyTorch.example 1: per-example gradient normsExample of using it to compute per-example gradient norms for linear layers, using trick fromhttps://arxiv.org/abs/1510.01799Seeexample_norms.pyfor a runnable example. The important parts:!pip install autograd-lib

from autograd_lib import autograd_lib

loss_fn = ...
data = ...
model = ...
autograd_lib.register(model)


activations = {}

def save_activations(layer, A, _):
    activations[layer] = A

with autograd_lib.module_hook(save_activations):
    output = model(data)
    loss = loss_fn(output)

norms = [torch.zeros(n)]

def per_example_norms(layer, _, B):
    A = activations[layer]
    norms[0]+=(A*A).sum(dim=1)*(B*B).sum(dim=1)

with autograd_lib.module_hook(per_example_norms):
    loss.backward()

print('per-example gradient norms squared:', norms[0])Example 2: Hessian quantitiesTo compute exact Hessian, Hessian diagonal and KFAC approximation for all linear layers of a ReLU network in a single pass.Seeexample_hessian.pyfor a self-contained example. The important parts:!pip install autograd-lib

autograd_lib.register(model)

hess = defaultdict(float)
hess_diag = defaultdict(float)
hess_kfac = defaultdict(lambda: AttrDefault(float))

activations = {}
def save_activations(layer, A, _):
    activations[layer] = A

    # KFAC left factor
    hess_kfac[layer].AA += torch.einsum("ni,nj->ij", A, A)

with autograd_lib.module_hook(save_activations):
    output = model(data)
    loss = loss_fn(output, targets)

def compute_hess(layer, _, B):
    A = activations[layer]
    BA = torch.einsum("nl,ni->nli", B, A)

    # full Hessian
    hess[layer] += torch.einsum('nli,nkj->likj', BA, BA)

    # Hessian diagonal
    hess_diag[layer] += torch.einsum("ni,nj->ij", B * B, A * A)

    # KFAC right factor
    hess_kfac[layer].BB += torch.einsum("ni,nj->ij", B, B)


with autograd_lib.module_hook(compute_hess):
    autograd_lib.backward_hessian(output, loss='CrossEntropy')Variations:autograd_lib.backward_hessianfor Hessianautograd_lib.backward_jacobianfor Jacobian squaredloss.backward()for empirical Fisher Information MatrixSee autograd_lib_test.py for correctness checks against PyTorch autograd.
Package: autogram
Installation :: Python3pip install autogramSample usagefromautogramimportAutogramfromautogramimportStartfromloguruimportloggerdefhandle_update(update):logger.info(update)@Start()defmain(config):bot=Autogram(config)bot.settings('AUTOGRAM_ENDPOINT','https://3c23-105-161-113-44.ngrok.io')# ngrok addr webhook injectionbot.addHandler(handle_update)bot.start()0x00 An efficient asyncronous Telegram bot API wrapper!Autogram is a telegram BOT API wrapper with focus on simplicity and performance.0x01 Why AutoGram?I need a bot framework that makes it easy to administer control remotely.Autogram has a built-in webhook endpoint written using Bottle. Therefore, if you have a public IP, or can get an external service to comminicate withlocalhostthrough a service like ngrok (I use it too!), then set that endpoint as AUTOGRAM_ENDPOINT in your environment variable, or inject its value in the bot config during startup, pointing tolportdefined in configuration file. If the public address provided is not accessible, the program will use polling to fetch updates.
You add functionality to Autogram bot py implementing and adding callback functions. The bot will therefore work with available callbacks, and will continue to work even if none is specified! This allows the bot to work with available features, despite missing user-implemented handlers for specific updates.0x02 Currently implemented API methodsApprox. 1/4 (essentials only)0x03 Project TODOsPlans to cover the entire telegram API methods.footnotesRunningpip install autograminstalls SQLAlchemy too incase you need to add database storage functionality.If thetelegram tokenis missing inconfig file, or is INVALID, the bot will terminate.Pollingcan be implemented by the user, while feeding data to the bot throughbot.parseUpdate(...)Autogram searches for bottokenin the specifiedconfig filebefore resolving to env variable value.Don't run multiple bots with the sameTOKENas this will cause update problemsSending unescaped special characters when using MarkdownV2 will return HTTP400Havefunwith whatever you're building;)unlock sublime text 4 licenseThis guide also works for linux. The file that needs to be replaced is located in: /opt/sublime_text/sublime_text in case of debian based systems. (Ubuntu, Debian etc.)Here are the instructions that I followed:Go tohttps://hexed.it/Click Open File in the top left corner and select /opt/sublime_text/sublime_textPress CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9Finally, in the top left corner again, click on Export Button. This will download the file in your Downloads Folder.Execute sudo cp ~/Downloads/sublime_text /opt/sublime_text/sublime_text to replace the original file.
Package: autograph
django-autograph================Store signature in JSON format into db.Functional code based on http://keith-wood.name/signature.html#javaRequirements------------1. jQuery Signature by kbwood (Keith Wood)https://github.com/kbwood/signature2. Django 1.4+3. South4. Python Imaging Library (PIL)Settings--------settings.pyINSTALLED_APPS = ('autograph',)Testing-------python manage.py test autographContact-------https://github.com/zivezab/django-autograph/issues
Package: autograph-utils
Python Autograph UtilitiesA library to simplify use of AutographFree software: Apache Software License 2.0Documentation:https://python-autograph-utils.readthedocs.io.FeaturesSignatureVerifierThe canonical implementation of certificate chain validation. Although
some other implementations seem to exist (such ashttps://github.com/river2sea/X509Validation,https://github.com/alex/x509-validator, andhttps://github.com/openstack/cursive), all are marked as
pre-production and/or needing work, so just do it ourselves.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.1 (2019-11-12)Fix call to_now(#8).0.1.0 (2019-11-11)First release on PyPI.
Package: auto-graph-visualizer
An automatic graph visualize package for
`Cytoscape <https://cytoscape.org/>`__.More DetailsAutomatic Graph Visualizer[AGVIZ] is one of the Cytoscape Projects.
AGVIZ attaches some visualize information for the Cytoscape to the
network structure information (CX
format).System RequirementsTo use AGVIZ, you need the following:Ubuntu (Recommend >=18.04) or macOS (Recommend >=10.14)Windows is not supportedPython 3.xInstallingDownload or clone this repository$ git clone https://github.com/idekerlab/auto-graph-visualizerIn the downloaded (cloned) directory, install using setup.py$ python3 setup.py installKnown issues in installingPerhaps, you have some error inpython-igraphinstallation
depending on some environments. In such case, try the following
installation before setup.$ apt install build-essential python3-dev libxml2 libxml2-dev zlib1g-devUsage$ cat your_file | agvizOptions:-n : Output graph name (.cx). (default : ‘test_out’)-p : Output directory path. (default : ‘./’)-a : Community detection algorithm. (default : ‘greedy’)greedy : Based on the greedy optimization of modularitydetaileigenvec : Newman’s eigenvector community structure detection.detaillabelprop : The label propagation method of Raghavan et al.detailrest : Community Detection Rest service.detail(github)See the
`example <https://github.com/idekerlab/auto-graph-visualizer/blob/master/examples/UsingRestComDetec.ipynb>`__
how to use.-cp : Base color palette. (default : ‘hls’)hlsAccentSet1brghsvgnuplot-ns : The standard of nodesize. (default : ‘betweenness’)closenessdegreepagerankbetweennessdiversity-maxns : Value of criterion which maximum the node size. (default :
100 *you may need adjust this value according to the criterion and
the network)-d : Density of output graph.(default : ‘normal’)densitynormalsparse-pos : Algorithm of node positioning for graph layout.(default :
‘fa’)fa :forceatras2kk : kamada-kawai >Tomihisa Kamada and Satoru Kawai. An Algorithm
for Drawing General Undirected Graphs. Information Processing
Letters 31:7-15, 1989.-dln : The number of display labels. (default : 20)AuthorsKeiichiro Ono(Github)Atsuya Matsubara(Github)Mikio Shiga(Github)LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: autogroceries
autogroceriesThe goal ofautogroceriesis to automate your weekly grocery shop (from Sainsbury's).Installationautogrocerieswas developed for for personal use and is no longer under active development. You can install the development version frompypi:pipinstallautogroceriesUsageautogroceriesusesSeleniumto interface with the Sainsbury's website, automatically filling your cart with an inputted list of ingredients.The below illustrates the minimal config required to runautogroceries.fromautogroceries.shopperimportSainsburysShopperingreds=["tomatoes","lemon"]n_ingreds=[1,2]sb=SainsburysShopper(ingreds,n_ingreds)# SainsburysShopper needs Sainsbury's grocery account username/email and password# for security, it's recommended to load these from a file# rather than inputting your credentials directlyshopping_list=sb.shop("UN","PW")An example ofautogroceriesin action:https://user-images.githubusercontent.com/32676710/159334670-9df6cbb5-c547-426b-a42b-64b312463e56.movCreditsautogrocerieswas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: autoguard
Theautoguardproject enables a Sentry server to use REMOTE_USER authentication.It’s mostly a special sentry configuration file, modified to hook authentication
backends and Django middlewares to the proper RemoteUser classes.It also usesgetconfto read settings from INI configuration files.UsageTheautoguardconfiguration can be tuned in a few ways:Specific environment variables (starting withAUTOGUARD_)Reading from/etc/autoguard/settings/*.iniOn a dev checkout, reading from/path/to/autoguard_checkout/local_settings.iniAll options are described inautoguard/example_settings.inifile.Use autoguard almost as you would use Sentry. It auto-discovers thesentry_conf.pyconfig file:autoguard startIf using the docker image build by the attached Dockerfile. The entrypoint is the “autoguard” command:docker run --name redis redis:latest
docker run <IMAGE_ID> --link redis:redis --volume <CONFIG_DIR>:/etc/autoguard startSecurityAutoguard expects to run behind aHTTPSreverse proxy; that proxyMUSTset theX-Forwarded-ProtoHTTP header
tohttpsfor HTTPS requests.The authentication is based onX-Remote-UserHTTP header, the proxyMUSTclean it before passing to the application.
Package: autogui
# AutoGuiAutoGui is a GUI Automation/Test tool giving the user high level keywords to automate WPF and winform applications.## Getting Started
Install using pippip install autoguiI recommend using a spy tool such RecorderSpy.exe in the tools folder or my RecorderSpy repo. Use ctrl-r to start recording, ctrl-e to end recording, and ctrl-w to select a GUI element during recording. This generates both a python and robot script of your steps.Any other Windows Spy tool, such as Microsofts inspect.exe tool will help out in finding locator properties of elements.Most of the time you can use just the default selector (name) to find your element.### Examples
Open Calculator, Click a few buttons and close.` from autogui import *open("calc")click("One")click("Two")close() `Open Notepad, Read and Write some text and close.` from autogui import *open("notepad")write("Myname is AlexLundberg","TextEditor")click("value:=Myname is Alex Lundberg")sendkey("{ENTER}")append(" and thisAutoGui","TextEditor")print(read("TextEditor"))close() `Open both notepad and calculator and move between them using setWindow().` from autogui import *open("calc")print(getActiveWindow())open("notepad")print(getActiveWindow())setWindow("calculator")print(getActiveWindow())click("One",0,4)#clicks on the first element(0) that matches title = "One". Changes timeout to 4 seconds #with selectors other than title you will need to use := with the property value to matchclick("One,controltype:=button,id:=num1Button,class=Button")close("Untitled- Notepad") close() #closes calculator window `### Methods` click(id,child=0,timeout=timeout) write(value,id,child=0,timeout=timeout) setWindow(id,contains=True,timeout=timeout) append(value,id,child=0,timeout=timeout) rightclick(id,child=0,timeout=timeout) sendkey(key) read(id,child=0,timeout=timeout) open(app,setActive=True)close(window="activeWindow")getActiveWindow() `### Selectors
To select elements, try using any of the following:` name id value class controltype `properties are fed into the id input of the function in the format: prop1:=propvalue,prop2:=prop2value. The title property does not need to be prefaced.
[Full list of available properties](https://docs.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement)## LicenseThis project is licensed under the MIT License
Package: auto-guild
auto_guildCreates a Discord server based on a template you lay out, making it an easy and quick way to flesh out a server to fit your needs.InstallationpipYou can install the project usingpip:Linux/Mac$pip3installauto_guildWindows>py-mpipinstallauto_guildSourceThis project uses PDM, a package manager that implements PEP 582, please visithttps://pdm.fming.dev/#installationfor
installation instructions.To install the project, clone the repository and install the dependencies.$gitclonehttps://github.com/MrHemlock/auto_guild.git
$pdminstallUsageThe script requires 3 things in order to run:a server template yamla token for the bot you want to make the servera user ID for the user you want to transfer ownership toauto_guildrequires that you provide it with either a server name that you want to use (if you want it to create a blank server) or provide it with a file path to a server template yaml.TheBOT_TOKENandUSER_IDcan either be passed as arguments on the command-line, placed in a.envfile, or come from your system's environmental variables.Example:usage: auto_guild.py [-h] (-s STRUCTURE | -n SERVER_NAME) [-u USER_ID] [-t BOT_TOKEN]$pythonauto_guild.py-sexamples/pydis_bot.yml$pythonauto_guild.py-n"Hemlock's Cool Server"-uUSER_ID-tBOT_TOKENServer Template FormatThe server template yaml format is as follows:name:server_name_herecategories:category_name:-channel_name:channel_typeroles:-role_namecategory_nameandchannel_nameshould be replaced with the relevant names you desire. For a practical example, see thepydis_bot.ymlfile in theexamplesfolder.
Package: autohandshake
Installationpip install autohandshakeSummaryA library for automating tasks on the Handshake career services platform.Current functionality includes the automation of:Getting data from InsightsGetting a complete record of your school’s appointment type settingsGetting a complete record of your school’s major mappingsGetting unfilled appointment slot data from the appointment calendarGetting account access request dataTypical usage looks like:from autohandshake import HandshakeSession, InsightsPage

school_url = 'https://jhu.joinhandshake.com'

with HandshakeSession(login_url=school_url, email=your_email) as browser:
    insights = InsightsPage(link_to_insights_report, browser)
    report_data = insights.get_data()Important: this package relies on an automated driver for Google Chrome, so users must have Chrome installed in order to use this package.DocumentationYou will find complete documentation atthe Read the Docs site.