Saravanan666/pypi-org huggingface dataset:
Package: runcode
RunCode Python APIThis API is as simaple as send your code and getting execution result.Installpip install runcodePython Examplefrom runcode import Runner

runner = Runner(
    api_key="",
    callback_url="",
)

runner.execute(
        code="""
print("Hello world")
start = input()
end = input()
for i in range(int(start), int(end)):
    print(i)
""",
        input="1\n10",
        compiler=Runner.python39,
    )You need to provide two parameters here.api_key - you will get it from runcode.io dashboard after loging.callback_url - Your application URL to process execution result.compiler - You can choose any of the available compilers from RunCode docs.Django Examplefrom runcode import Runner

runner = Runner()

runner.execute(
        code="""
print("Hello world")
start = input()
end = input()
for i in range(int(start), int(end)):
    print(i)
""",
        input="1\n10",
        compiler=Runner.python39,
    )You need to specify compiler here.
compiler - You can choose any of the available compilers from RunCode docs.You need to add two parameters to settings.py file.RUNCODE_API_KEY - you will get it from runcode.io dashboard after loging.RUNCODE_CALLBACK_URL - Your application URL to process execution result.Available compilerspython39 = "python-3.9.7"
gcc49 = "gcc-4.9"
cpp49 = "g++-4.9"
openjdk11 = "openjdk-11"
dotnet5 = "dotnet-5"
python27 = "python-2.7.18"
php81 = "php-8.1"
fsharp5 = "fsharp-5"
ruby30 = "ruby-3.0.2"For further support, contacthello@runcode.io
Package: runcommands
A simple command runner that usesargparsefrom the Python standard
library under the hood. Runs on Python 3 only (3.7 and up). Uses annotations to
configure options.There are two basic use cases:Standalone console scripts (including scripts with subcommands).Collections of commands (similar to make, Fabric, etc).Building on these, especially #2, there are a couple of more advanced
use cases:A simple orchestration/deployment tool. If you have a simple build
process and just need torsyncsome files to a server, a few
simple commands might be all you need.A wrapper for more sophisticated orchestration/deployment tools–an
alternative to the Bash scripts you might use to drive Ansible
playbooks and the like.Basic UsageDefine a command:fromruncommandsimportarg,commandfromruncommands.commandsimportlocal@commanddeftest(*tests:arg(help='Specific tests to run (instead of using discovery)')):iftests:local(('python','-m','unittest',tests))else:local('python -m unittest discover .')Show its help:> run test -h
test [-h] [TESTS [TESTS ...]]

positional arguments:
  TESTS       Specific tests to run (instead of using discovery)

optional arguments:
  -h, --help  show this help message and exitRun it:> run test
..........
----------------------------------------------------------------------
Ran 0 tests in 0.000s

OKCreate a standalone console script using a standard setuptools entry
point:# setup.pysetup(...entry_points="""
    [console_scripts]
    my-test-script = package.module:test.console_script

    """)Run it (after reinstalling the package):> my-test-script
..........
----------------------------------------------------------------------
Ran 0 tests in 0.000s

OKSee themain documentationfor more information on installation,
defining & running commands, configuration, etc.FeaturesEasily create standalone console scripts: simply define a function and
wrap it with the@commanddecorator.Easily create standalone console scripts that have subcommands (a lagit).Create collections of commands (similar to make, Fabric, etc).Run multiple commands in sequence:run build deploy.Usesargparseunder the hood so command line usage is familiar.Provides built-in help/usage for all commands viaargparse.Provides command line completion (including example scripts for bash
and fish).DocumentationDetailed documentation is onRead the Docs.LicenseMIT. See the LICENSE file in the source distribution.TODOImprove command line completionAdd more documentation and examplesWrite tests
Package: run-configurations
A small script that allows quickly executing run configurations from the command
line including shell completions.A run configurations can be any executable placed in a.run_configsdirectory
in any parent of the current working directory. Configurations are always
executed in the directory containing the.run_configsfolder to get the same
behavior independent of the current working directory.Usage: rc [OPTIONS] RUN_CONFIG [ARGS]...

  Run a run config

  A run config can be any executable file in the .run_configs directory.

Options:
  -f, --fork                      Fork process and return immediately. If -s
                                  is also supplied the screen session will
                                  start detached.
  -n, --null-pipe                 Use a null pipe instead of a PTY. Is ignored
                                  if -s is supplied
  -s, --screen                    Run in a screen session.
  -e, --edit                      Edit run config instead of running.
  -l, --list                      List available run configs.
  -x, --make-executable           Make run config executable if it isn't
                                  already.
  --base-dir DIRECTORY            Base directory to run from. Defaults to the
                                  first directory containing a .run_configs
                                  directory. Should contain a .run_configs
                                  directory with executable run configs.
  --get-base-dir                  Print base directory.
  --get-rc-dir                    Print run configuration directory.
  --zsh-completion                Print zsh completion script.
  --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
                                  Log level.
  --version                       Show the version and exit.
  --help                          Show this message and exit.
Package: runcrawler
RUNCRAWLERRuncrawleris a monitoring tool on software-usage based on data extraction.Parallel computing program such as CFD-solver often run on different clusters, by different users. It is hard for managers to get a big picture on how the program is used.run crawleris a tool to monitor their usage and allow managers to get a various type of useful information by extracting data related to the execution of the program.Here are some examples of questions which managers often have.What are the typical errors repeated by the users of my team ?Are our runs efficient in terms of CPU time ?If so, are they related to a certain parameter setting ?As an example, this chart pie shows the percentage of runs that are converged versus the runs
that did not converge and on the side, the code associated to the reason it
crashed (0 if it exited fine, 300 if not in that case)Runcrawlercan return the error codes associated to crashes and improve
your understanding.Installationruncrawleris available by simple execution ofpip install runcrawlerHow to useUse the CLIruncrawler scan-log path/to-your-file.This will return a code corresponding to the reason why your run crashed.To go furtherReadfurther
Package: run-crom
CROM_offline_trainingThis repository contains the offline training pipeline forCROMPrerequisitesWe assume a fresh install of Ubuntu 20.04. For example,docker run --gpus all --shm-size 128G -it --rm -v $HOME:/home/ubuntu ubuntu:20.04Install python and pip:apt-get update
apt install python3-pipDependenciesFrom the project directory install through pip:pip install .Alternatively, you may install via PyPI directlypip install run_cromUsageTrainingrun_crom-modetrain-d[datadirectory]-initial_lr[learningrateconstant]-epo[epochsequence]-lr[learningratescalingsequence]-batch_size[batchsize]-lbl[labellength]-scale_mlp[networkwidthscale]-ks[kernelsize]-strides[stridesize][-siren_dec][-dec_omega_0[decodersirenomega]][-siren_enc][-enc_omega_0[encodersirenomega]]For examplerun_crom-modetrain-d/home/ubuntu/sim_data/libTorchFem_data/extreme_pig/test_tension011_pig_long_l-0.01_p2d-lbl6-lr10.10.050.020.01-epo30003000300030003000-siren_dec-batch_size4-scale_mlp64-dec_omega_030--gpus1Testingrun_crom-modetest-m[pathto.ckptfiletotest]You may also provide any built-in flags for PytorchLightning'sTrainerDataSimulation data should be stored in a directory with the following structure.
For example,├───sim_data_parent_directory (contain multiple simulation sequences; each entry in this directory is a simulation sequence)
    ├───sim_seq_ + suffix
        ├───h5_f_0000000000.h5
        ├───h5_f_0000000001.h5
        ├───...

    ├───....See SimulationState under simulation.py for the structure of the h5 file.
Package: rundb
RunDBRunDb is not exactly a database. It is similar toTinyDB <https://tinydb.readthedocs.io/en/stable/>__ on storing files
as json.The main point of this library is to help the user on storing and
loading data.PhilosophyNoSql with tools to simulate relationalTable are all fully loaded when declaredQuery are done using pythonData are dict, they all have a unique key as a stringQuick Overview.. code:: python

    import RunDB
    from pathlib import Path
    from RunDB.tools.serialization import call_kwargs

    # Path to DB folder
    db_path = Path("testRunDB")
    # Create the Database instance
    db = RunDB.Database(db_path)

    # Get or Create User table, specifying the key as login (default is "id")
    # The key is used to find, if not explicitly given, the database id
    User = db.table("user", key="login")

    # Same for Group table
    Group = db.table(
        "group",
        key="name",
        one2many={"users": "user"}
    )

    # Create User 1
    u1 = User.append({"login": "paul"})  # With values

    # without values, 
    u2 = User["Matthieu"]
    u3 = User["Thomas"]

    u1.age = 18
    u2.age = 20
    u3.age = 18

    res = User.filter(lambda user: user.age == 20)

    list(User.records())


    test= Group["test"]
    test.users.append(u1)


    adminGroup = Group.append({
        "name": "admin",  # as the table key is "name", name will be poped
    })


    db["test"]["new"] = {"name": "new data"}  # Quick insert

    # Check if record has attribute age
    "age" in u1  # True

    # Get a dict
    data = dict(u1.items())

    db.dump_all()

Nb: Database are simply Group of Table, We can register Tables from
somewhere else or simply use a Table without Database object

Future
------

-  improve relational
Package: rundeck-resources
Python tool to query resources from different sources and export them into a data structure thatRundeckcan consume.Installationpip install rundeck-resourcesUsage$ rundeck-resources -h
usage: rundeck-resources [-h] [-v] [-l LOGGER] [--no-cache] [-V] config

Generates rundeck resources file from different API sources.

positional arguments:
  config                Configuration file.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbosity level to use.
  -l LOGGER, --logger LOGGER
                        The logger YAML configuration file.
  --no-cache            Do not use cache.
  -V, --version         Prints version.Therundeck-resourcesrequires an INI configuration file.
You can see the example configuration in theexample.ini.DockerThere is a docker image tagged with the version of the released package.ENVOPTIONALDESCRIPTIONARGSTrueThe command line arguments.CONFIGFalseThe path to the configuration file.Usage:$ docker run -it -v ~/config/:/config \
  -v ~/export/:/export \
  -e ARGS="-vvv" -e CONFIG="/config/config.ini" \
  elazkani/rundeck-resourcesAssumptions:~/config/holds theconfig.iniconfiguration file.The configuration is set to export to the/export/path./exportwill hold the resources exported file inside the container.~/export/exists on the host.Importersrundeck-resourcescurrently offer the followingimporters:Chef:ChefImporterExportersrundeck-resourcescurrently offers the followingexporters:YAML:YAMLExporterContributors:Andrew Rabert
Package: rundeckrun
READ FIRSTIf you’re new to RundeckRun and are interacting with newer versions of Rundeck (>=2.1.3),
you should consider using thecommand line tools included with Rundeck(since at least Rundeck version 2.0.4). RundeckRun
should work well for the Rundeck API up to version 11 (Rundeck <=2.1.3). It currently does not
support Rundeck API versions greater than 11 for no other reason the project maintainer not
having enough time to put into making the necessary changes. Pull requests welcome!A client library written in Python to interact with the Rundeck
API. It uses the awesomerequestslibrary.Documentation is hosted onRead the DocsDISCLAIMER:Test suite is not comprehensive, but most features have been tested and should work.
Should work on at least Python 2.7 and Python 3.3.InstallationRequiresrequests$pipinstallrundeckrunUse>>>fromrundeck.clientimportRundeck>>>rd=Rundeck('rundeck.server.com',api_token='SECRET_API_TOKEN')>>>rd.list_projects()[{
    'description': None,
    'name': 'TestProject',
    'resources': {'providerURL': 'http://localhost:8000/resources.xml'},
}]>>>rd.list_jobs('TestProject')[{'description': 'Hello World!',
  'group': None,
  'id': 'a6e1e0f7-ad32-4b93-ba2c-9387be06a146',
  'name': 'HelloWorld',
  'project': 'TestProject'}]>>>rd.run_job('a6e1e0f7-ad32-4b93-ba2c-9387be06a146',argString={'from':'RundeckRun'}){'argstring': '-from RundeckRun',
 'date-started': datetime.datetime(2013, 7, 11, 18, 4, 24),
 'description': 'Plugin[localexec, nodeStep: true]',
 'href': 'http://rundeck.server.com/execution/follow/123',
 'id': '123',
 'job': None,
 'status': 'running',
 'user': 'rundeckrun'}Running TestsNoteYou’ll probably want to create avirtualenvfor this.Running the tests requires a running Rundeck server (the Rundeck standalone jar works well) and an
API token for said Rundeck server.You’ll have to at least set the API token environment variable ofRUNDECK_API_TOKENbut there
are other environment variables to be aware of. The list is below and can be found at the head of
the tests/__init__.py file. They should be fairly self-explanatory (OK, RUNDECK_PROTOCOL might
not be self-explanatory… use either ‘http’ or ‘https’ there).RUNDECK_API_TOKENRUNDECK_SERVERRUNDECK_PORTRUNDECK_PROTOCOLNext clone the repo.gitclonehttps://github.com/marklap/rundeckrunNoteactivate yourvirtualenvThen install the requirements and dev requirements.pipinstall-rrequirements.txtpipinstall-rrequirements_dev.txtLastly, execute nose tests.nosetests
Package: rundocker
RundockerA script for running docker container processThe issue we are solving hereSince docker 0.6, you can actually run docker container like normal process` docker run--rmfoobar `when you press Ctrl + C, docker client will proxy the INT signal for you to the docker container, as a result, container will be terminated. However, in many cases, docker container will not be closed correctly, even the docker client process is stopped. For example, when you tried to run a container with an used port, the run command will fail, however, somehow the docker container will not be removed, and it causes following run commands fail` 2014/07/27 03:24:45 Error response from daemon: Cannot start container 08b25a41e30be78410a2556ffe01e720ff0d7bd512a53e8a44d7bceb8d3cf83e: Bind for 172.17.42.1:5050 failed: port is already allocated 2014/07/27 03:24:46 Error response from daemon: Conflict, The name foobar is already assigned to 08b25a41e30b. You have to delete (or rename) that container to be able to assign foobar to a container again. 2014/07/27 03:24:48 Error response from daemon: Conflict, The name foobar is already assigned to 08b25a41e30b. You have to delete (or rename) that container to be able to assign foobar to a container again.....`There is an [issue #7245](https://github.com/docker/docker/issues/7245) describes the problem. If new feature is added, I think we can drop the project then.InstallationYou can install it via` pip install rundocker `Since it only has [one Python script file](https://github.com/victorlin/rundocker/blob/master/rundocker/__main__.py), you can actually copy the script to a file and make it executalbe.UsageUse rundocker to run docker with a name as you usually do` sudo rundocker--rm--name="foobar"eggs/spam `In many cases, containers are not removed correctly even the docker run process
is already terminated. Then when you try to run container with the same name,
it will keep telling you there is already one container with the same name.
This is pretty annoying, and it breaks automatic deployment.
To address the issue, you would probably like to add–force-rmargument. It will force to remove existing container with the same name even
it is running before rundocker runs the new container. For example:` sudo rundocker--rm--force-rm--name="foobar"eggs/spam `How it worksThe script looks into existing docker containers, if there is a dead container
with the same name, it will remove it for you. However, if the existing
container is still running, and error will be raised.When the script receives INT signal, it will stop the container.
Package: rundown
rundownA fun addition to pandas?InstallationWe'll get to this, just do thegit cloneand thepip install ., you know.UsageTo be run in a Jupyter Notebook, or somewhere else with nice HTML rendering of Pandas tables (i.e. not Github)importpandasaspdimportrundownsample_df=pd.util.testing.makeDataFrame()# make one!sample_df.rundown()
Package: run-dynamodblocal
Run-DynamoDBLocalAWS makesDynamoDBLocal-- a service that mirrors the API of DynamoDB and runs locally -- available to their customers for testing purposes.  This Python packages facilitates running that service as a subprocess of the testing harness.Install$pipinstall'run-dynamodblocal[boto3]'Leave off the[boto3]if you don't intend to use this package's ability to patchboto3.UsageQuickstartWith thanks toncoghlan:importboto3_mockingfromcontextlibimportExitStackimportos.pathimportrun_dynamodblocalimportunittest# If patching isn't engaged when the run_dynamodblocal context is entered, an# exception will be thrownboto3_mocking.engage_patching()classMyTest(unittest.TestCase):defsetUp(self):withExitStack()asresources:dynamodblocal_path=os.path.expanduser(# wherever you keep the unpacked service binaries'~/Downloads/dynamodb_local_latest')resources.enter_context(run_dynamodblocal.rddbl.patched_into_boto3(dynamodblocal_path))# Enter any other contexts for this test class...addCleanup(resources.pop_all().close)# Define test methods hereDiving DeeperThis package provides two different context managers which run the DynamoDBLocal service -- one of which integrates withboto3to automatically redirect thedynamodbservice to this DynamoDBLocal instance.  The DynamoDBLocal started will use the-inMemoryflag, so it does not persist on disk after the test run is over and doesn't waste testing time committing information to disk.Context ManagerDescriptionrun_dynamodblocal.in_subprocessThe most fundamental; runs the server and returns the port number as the context valuerun_dynamodblocal.patched_into_boto3Runs the server and patches it into theboto3libraryIt also provides therun_dynamodblocal.LocalDbOpsclass, which supports refreshing the database schema and populated data based on a Serverless configuration and some basic JSON-type data.ContributingFork it on GitHub (https://github.com/rtweeks/run-dynamodblocal)Create your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create a new Pull Request (onGitHub)
Package: runeatest
# runeatest[![Build Status](https://dev.azure.com/sabinio/sabin.io%20public/_apis/build/status/RichieBzzzt.runeatest?branchName=master)](https://dev.azure.com/sabinio/sabin.io%20public/_build/latest?definitionId=250&branchName=master)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)nunit test report generator to run in DataBricksAdd test case results to an object and at the end of testing.
Convert results to a string that looks like a Nunit results file and exit notebook with string.Do not use: Currently in planning phase.## to do:Merge test case results and present a complete nunit result file.publish to testpypiSetup a test notebook project that makes use of runeatest.How to setup a job to execute notebook with tests.Sort out build number## known unknownsHow does this work with other types of jobs that can be run?
Package: run-elmer
run-elmerRun Elmer FEM (inside a container) from PythonRequires a working Docker and docker-py installationsIn future: support using noncontainerized Elmer FEM binaryInstallationpip install run-elmerUsageimportrun_elmeraselmerm=elmer.mesh([[0,0],[0,1],[1,0],[1,1]],[[0,1,2],[1,2,3]]).refined(2).with_boundaries({'left':lambdax:x[0]==0,'right':lambdax:x[0]==1,})m# use in Elmer?out=elmer.run(m,"""HeaderMesh DB "." "."EndSimulationCoordinate System = CartesianSimulation Type = SteadyPost File = "results.vtu"EndBody 1Equation = 1Body Force = 1EndBody Force 1 :: Source = Real 1.0Equation 1 :: Active Solvers(1) = 1Solver 1Equation = "Poisson"Variable = "Potential"Variable DOFs = 1Procedure = "Poisson" "PoissonSolver"Linear System Solver = "Direct"Linear System Direct Method = UMFPackSteady State Convergence Tolerance = 1e-09EndBoundary Condition 1{}Potential = Real 0End""".format(elmer.target_boundaries(m,'left','right')),verbose=False)out.point_data{'potential': array([[0.     ],
        [0.     ],
        [0.     ],
        [0.     ],
        [0.     ],
        [0.125  ],
        [0.125  ],
        [0.125  ],
        [0.     ],
        [0.     ],
        [0.09375],
        [0.     ],
        [0.09375],
        [0.09375],
        [0.09375],
        [0.09375],
        [0.     ],
        [0.09375],
        [0.     ],
        [0.09375],
        [0.09375],
        [0.125  ],
        [0.125  ],
        [0.09375],
        [0.09375]])}elmer.plot(m,out.point_data['potential'],edges=True)<matplotlib.axes._subplots.AxesSubplot at 0x7fe1198e1730>
Package: runeq
runeq-pythonPython 3 Standard Development Kit (SDK) for Rune Lab's Query API:runeqReferencesLibrary documentation:https://runeq.readthedocs.io/en/latestAPI documentation:https://docs.runelabs.ioRune Labs home page:https://runelabs.ioInstallationPython 3.6+ is required.To install the library using pip:pip3 install runeqTo install from source:python3 setup.py installDevelopmentInitialize a virtual environment, with dev requirements installed:make initRun testsmake test
# With coverage
make test-coverage
# For a single test
make test-singleLintmake lintPreview documentationmake build-docsThis will build the documents in thedocsdirectory. Open theindex.htmlfile in your browser to preview the documentation.Build PyPI artifact:make build-distClean up ignored files/artifactsmake clean
Package: runescape-text
runescape-textGenerates a gif of text based on runescape chatbox effectsIf you long for the days of selling your rune scimmy:python runescapetext.py wave:glow1:This will generate a convincing replicaOr as an import:importrunescape_textasrstimg=rst.parse_string("wave:glow1:Hello World")if(len(img)==1):rst.single_frame_save(img[0],file="out.png")else:rst.multi_frame_save(img,file="out.gif")A Discord bot implementing this has been broken out into a seperate repository. Find ithere.