Saravanan666/pypi-org huggingface dataset:
Package: dokker
DokkerDevelopmentThis is a development version of the package. Its API is not stable and
might change at any time.InspirationThis package is designed to manage docker compose projects programmatically via python.It provides a simple way to create, start, stop, and remove docker compose projects, as well as
a way to interact with the containers and services within the project ( like running commands,).While other packages exist that provide similar functionality (e.g. python-on-whales, testcontainers, etc.),
dokker focusses on interacting with the docker compose projectasyncronously(using asyncio, but with sync apis).This allows for patterns like inspecting the logs of a container while your python code is interacting with it.The primary use case for this package is to create integration tests for docker compose projects.
It easily integrates with pytest.InstallationpipinstalldokkerSync UsageImaging you have a docker-compose.yaml file that looks like this:version:"3.4"services:echo_service:image:hashicorp/http-echocommand:["-text","HellofromHashiCorp!"]ports:-"5678:5678"To utilize this project in python, you can use thelocalfunction to create a project from the docker-compose.yaml file.
(you can also use other builder functions to create projects from other sources, e.g. a cookiecutter template)fromdokkerimportlocal,HealthCheckimportrequests# create a project from a docker-compose.yaml filedeployment=local("docker-compose.yaml",health_checks=[HealthCheck(service="echo_service",url="http://localhost:5678",max_retries=2,timeout=5,)],)deployment.health_on_enter=True# optional: wait for all health checks to be successful on enterwatcher=deployment.logswatcher("echo_service",wait_for_logs=True,)# Creates a watcher for the echo_service service, a watcher# will asynchronously collect the logs of the service and make them available# start the project (), will block until all health checks are successfulwithdeployment:# interact with the projectwithwatcher:# interact with the projectprint(requests.get("http://localhost:5678"))# as we set wait_for_logs=True, the watcher will block until the logs are collectedprint(watcher.collected_logs)# interact with the projectAsync Usagefromdokkerimportlocal# create a project from a docker-compose.yaml filedeployment=local("docker-compose.yaml")deployment.up_on_enter=False# optional: do not start the project on enter# start the project ()asyncdefmain()asyncwithdeployment:# interact with the projectawaitdeployment.aup()# start the project (and detach)asyncwithdeployment.logwatcher("service_to_log",log=print):awaitdeployment.arestart("service_to_log")# restart the serviceasyncio.run(main())Pytest Usageimportpytestfromdokkerimportlocal@pytest.fixture(scope="session")defdeployment():deployment=local("docker-compose.yaml")deployment.health_on_enter=Truewithproject:yieldproject
Package: dokklib-db
Dokklib-DB (UNMAINTAINED)Dokklib-DB is a Python library for the DynamoDB single table pattern.FeaturesSimple, Pythonic query interface on top of Boto3. No more nested dict literals!Type safety for primary keys and indices (for documentation and data integrity).Easy error handling.Full type hint & unit test coverage + integration testing.DocumentationInstallInstall with:pip install "boto3>=1.10.34,<2" dokklib-dbRequires Python 3.6 or later.Note that Boto3 is not specified as an installation requirement for Dokklib-DB, so you have to install it separately (like in the example command above).
The reason for this is to make Dokklib-DB easier to use in AWS Lambda where Boto3 is part of the default environment.
The earliest supported Boto3 version is1.10.34which is the same version as the Boto3 package in the Python 3 AWS Lambda environments.Example usageimportdokklib_dbasdbclassUser(db.EntityName):"""User entity name.Key value: unique user name, eg. 'alice'.Example key: 'USER#alice'."""classGroup(db.EntityName):"""Group entity name.Key value: unique group name, eg. 'my-group'.Example key: 'GROUP#my-group'."""table=db.Table('SingleTable')# Construct entity keys.pk_alice=db.PartitionKey(User,'alice')pk_bob=db.PartitionKey(User,'bob')sk_group1=db.SortKey(Group,'group1')# Add users to group one.# Insert is a `PutItem` operation that fails if the item already exists.table.insert(pk_alice,sk_group1)table.insert(pk_bob,sk_group1)# Get all users in group one.pk_group=db.PartitionKey(Group,'group1')user_prefix=db.PrefixSortKey(User)group_members=table.query_prefix(pk_group,user_prefix,global_index=db.InversePrimaryIndex())print(group_members)# [{'PK': 'alice'}, {'PK': 'bob'}]# Move users from group one to group two atomically.sk_group2=db.SortKey(Group,'group2')table.transact_write_items([db.DeleteArg(pk_alice,sk_group1),db.DeleteArg(pk_bob,sk_group1),db.InsertArg(pk_alice,sk_group2),db.InsertArg(pk_bob,sk_group2)])StatusThe project is no longer maintained.The library is in beta and under heavy development as I'm working on it while building aserverless projectthat relies on it.
I have only implemented parts of the DynamoDB API that I needed so far, but I'm planning on achieving full coverage.
Feature and pull requests are welcome. (Please open an issue, before starting work on a pull request to avoid wasted effort.)
Package: dokklib-db-extended
Dokklib-DBDokklib-DB is a Python library for the DynamoDB single table pattern.FeaturesSimple, Pythonic query interface on top of Boto3. No more nested dict literals!Type safety for primary keys and indices (for documentation and data integrity).Easy error handling.Full type hint & unit test coverage + integration testing.DocumentationInstallInstall with:pip install "boto3>=1.10.34,<2" dokklib-dbRequires Python 3.6 or later.Note that Boto3 is not specified as an installation requirement for Dokklib-DB, so you have to install it separately (like in the example command above).
The reason for this is to make Dokklib-DB easier to use in AWS Lambda where Boto3 is part of the default environment.
The earliest supported Boto3 version is1.10.34which is the same version as the Boto3 package in the Python 3 AWS Lambda environments.Example usageimportdokklib_db_extendedasdbclassUser(db.EntityName):"""User entity name.Key value: unique user name, eg. 'alice'.Example key: 'USER#alice'."""classGroup(db.EntityName):"""Group entity name.Key value: unique group name, eg. 'my-group'.Example key: 'GROUP#my-group'."""table=db.Table('SingleTable')# Construct entity keys.pk_alice=db.PartitionKey(User,'alice')pk_bob=db.PartitionKey(User,'bob')sk_group1=db.SortKey(Group,'group1')# Add users to group one.# Insert is a `PutItem` operation that fails if the item already exists.table.insert(pk_alice,sk_group1)table.insert(pk_bob,sk_group1)# Get all users in group one.pk_group=db.PartitionKey(Group,'group1')user_prefix=db.PrefixSortKey(User)group_members=table.query_prefix(pk_group,user_prefix,global_index=db.InversePrimaryIndex())print(group_members)# [{'PK': 'alice'}, {'PK': 'bob'}]# Move users from group one to group two atomically.sk_group2=db.SortKey(Group,'group2')table.transact_write_items([db.DeleteArg(pk_alice,sk_group1),db.DeleteArg(pk_bob,sk_group1),db.InsertArg(pk_alice,sk_group2),db.InsertArg(pk_bob,sk_group2)])StatusThe library is in beta and under heavy development as I'm working on it while building aserverless projectthat relies on it.
I have only implemented parts of the DynamoDB API that I needed so far, but I'm planning on achieving full coverage.
Feature and pull requests are welcome. (Please open an issue, before starting work on a pull request to avoid wasted effort.)
Package: dokku-client
Note:This project is in the very early stages of development.
You can help by adding commands (see below).Installationpipinstalldokku-clientConfigurationYou can specify the Dokku host & app on the command line, but you may
find it convenient to set the following environment variables instead:exportDOKKU_HOST=ubuntu@myserver.comexportDOKKU_APP=my-app-nameSetting these variables in your virtualenv’spostactivatehook may
be useful.UsageOnce installed, usage is simple:dokku-clienthelpProduces:Client for Dokku

usage:
    dokku-client <command> [<args>...]
    dokku-client help

global options:
    -H <host>, --host=<host>      Host address
    -a <app>, --app=<app>         App name

full list of available commands:

    help       Show this help message
    configget  Set one or more config options
    configset  Set one or more config options in the app's ENV file
    prompt     Open a prompt
    restart    Restart the container

See 'git help <command>' for more information on a specific command.Contributing new commandsDokku-client allows any developer to hook in extra commands. This is done using
exactly the same mechanism that dokku-client uses internally, that of entry points
provided bysetuptools.First, create a python package. You may have your own favorite way of doing this, but I
useseed:mkdirdokku-client-mycommandcddokku-client-mycommandpipinstallseedseedcreatelsSecond, create a class which extendsdokku_client.BaseCommandand implements the methodmain(args). Also, the doc-block at the top
of the class will be used bydocoptto parse any command line arguments, so make
sure you include that. See theprompt commandfor an example.And third, in your newsetup.pyfile, specify your new class as an entry point:entry_points={'dokku_client.commands':['mycommand = dokku_client_mycommand.mycommand:MyCommand',],}Runsetup.pyso that the new entry point is initialized:# Run in develop mode, so files will not be copied away.
# You can continue to edit your code as usualpythonsetup.pydevelopYou should now find that your new command is available in dokku-client,
rundokku-clienthelpto check.Once done, you can release your package to PyPi usingseed release--initial.
Package: doko
A simple command-line utility (and Python module) to determine your current location.Doko is a clone of Victor Jalencas’swhereamiutility, but unlike whereami it supports multiple strategies for finding your location.Kudos toRicho Healeyfor ideas and patches.InstallingWith GeoIPUsing GeoIP is the default. To install just GeoIP support, run:$ pip install dokoThen you’ll need to download a MaxMindfree GeoIP2 database, unzip it and set theGEOIP2_FILEenvironment variable to point to it.With Core LocationHowever, on OS X 10.6 (Snow Leopard) or later, you can also use the much more accurate Core Location framework:$ pip install doko[corelocation]The corelocation dependencies take much longer to install, so go make a coffee. In fact, make several coffees.Once you’ve installed the corelocation-enabled doko package, you’ll need to enable Core Location in System Preferences, in the “Security” or “Security & Privacy” section. Furthermore, you must be using Wifi for it to work.HackingFor hacking on OSX, you will likely want to installrequires-corelocation.txtas well asrequires.txt.Run the tests withmake test.Using on the command-lineJust run thedokocommand:$ doko
35.674,139.701This will give its best guess as to your location, depending on the strategies that are available. Use the--showoption to open the location in Google Maps.More fine-grained control over strategies used and the precision returned is available. Seedoko--help.Using as a module> import doko
> doko.location('geoip')  # on any platform
Location(latitude=35.674, longitude=139.701, source='geoip')
> doko.location('corelocation')  # on OS X, using Core Location
Location(latitude=35.674851, longitude=139.701419, source='corelocation')
> doko.Location.set_precision(2)
> doko.location()
Location(latitude=35.67, longitude=139.70, source='corelocation')LandmarksYou can use thedoko-landmarkcommand to store known landmarks, which you can then specify to doko using theDOKO_LANDMARKenvironment variable. This is useful if you’re somewhere you go often without GPS:$ doko-landmark --add ueno-park 35.713965 139.77411
$ doko-landmark --list
ueno-park [35.713965, 139.77411]
$ doko  # will give its best guess
35.674851,139.70141
$ DOKO_LANDMARK=ueno-park doko  # will use the landmark
35.713965,139.77411Changelog0.4.0Migrate togeoip2database instead of web serviceGive instructions for downloading and installing db toGEOIP2_FILERun tests and lint usingmake0.3.1Makesetup.pydependencies more flexible.0.3.0Add a means for storing and using known landmarksAdd a cache strategy enabled by--cacheoptionInclude location source in Location tupleAdd--show-strategyoption on the command-line0.2.0Make doko multiplatform, by making Core Location optionalHonour timeouts for GeoIP lookupsProvide control over precision to support privacy0.1.0Fetch latitude and longitude using Core LocationProvide backup method via GeoBytes page
Package: dokos-cli
Docli🛠 How the Docli directory worksDocli is a command line utility based onFrappe Bench.Install applicationsManage multiple sites and update Dodock / Dokos applications on*nix(CentOS, Debian, Ubuntu, etc.) for development and production.🚀 Dokos projectDokos is a 100% open-source management software that is based on ERPNext.It is distributed under the GPLv3 license.The 100% web architecture of Dokos allows you to use it in a public cloud as well as in a private cloud.You can install it on your own servers.The Dodock framework on which Dokos is installed also allows the installation of other applications. You can thus develop your own customizations, host them on your server and make them evolve in parallel with Dokos, without modifying its source code.📚 Use and documentationInstallation and use 🚧1. Documentation to set up Dokos :Documentation2. Access to the Dokos community:ForumHow to contribute 🚀Description of the process and the branches to useI create a ticket with my proposalif it is for a new featureif a discussion is needed before making a Merge RequestI propose a Merge Request with my fixes/new featuresThe merge request must always be proposed on the develop branch and a retrofit request must be made in the merge request descriptionThe merge request must contain a complete description and possibly screenshotsIf a documentation is needed, it must be created on the wiki before the Merge Request is sent for validation👉 Link to submit a ticket:Here🔗 Useful linksDetailed documentation:doc.dokos.ioCommunity forum:community.dokos.ioYoutube channel:Dokos YoutubeThe Facebook page:Dokos FacebookThe Linkedin page:Dokos Linkedin❔ More informationWebsite 🗂For details and documentation, see the websitehttps://dokos.ioLicense 📄This repository has been released under theGNU-GPLv3.Publisher 📌Dokos SAS
Package: dokr
dokr - Make your docker and ecs tasks easyA Helper pip package for docker and ECS tasks. This pip package helps you automate your CI/CD pipeline. If your using docker and Amazon ECS for deployments, this tool can be really helpful. This package uses aws cli and ecs cli. MakAssumptions:Assuming python is installed on your system.Docker is installed on your systemaws-cliis installed and credentials are configured on your system.ecs-cliis installed on system [For Log Command only]Installdokron your system using :pip install dokrECS Optionslogin into ecs directly (Assuming awscli is installed and configured)dokr ecs loginDeploy an image on a clusterdokr ecs deploy --cluster cluster_name --service service_name --tag image_versionCheck ecs running logs of a Task -  this command will ask for cluster/service and task defination.Note:Install ecs-cli before running this command  from here:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.htmldokr ecs logDocker Helper CommandsPrune whole system -  Cleans unused images, containers and volumes.dokr dock --clean-allDelete all the images matching the patterndokr dock --clean pattern_xxxAdd a tag to the existing image matching the provided pattern  (for latest tag only)dokr dock --tag pattern_xxx tag_namePush all images on a system matching a patternThis will push all images matching pattern 'pat'dokr dock --push patAWS CommandsCheck current public ip of a machine on AWSdokr aws --ip jenkinsRun Apps (subsitute todocker runcommand and DockerCompose)Configure your default values(like docker registry, port mapping, volume mapping etc. that will be same for all apps):Add an new app for deployment:Run all configured apps:Run a particular  app from ECR tags:Run a particular  app by providing a tag:Development:Clean ununsed:rm -rf build/ dist/ *egg* **.pyc __pycache__Build package:python setup.py bdist_wheeldeploy package:python -m twine upload dist/*follow this link for more detailshttps://dzone.com/articles/executable-package-pip-install
Package: dokr199
dokr - Make your docker and ecs tasks easyA Helper pip package for docker and ECS tasks. This pip package helps you automate your CI/CD pipeline. If your using docker and Amazon ECS for deployments, this tool can be really helpful. This package uses aws cli and ecs cli. MakAssumptions:Assuming python is installed on your system.Docker is installed on your systemaws-cliis installed and credentials are configured on your system.ecs-cliis installed on system [For Log Command only]Installdokron your system using :pip install dokrECS Optionslogin into ecs directly (Assuming awscli is installed and configured)dokr ecs loginDeploy an image on a clusterdokr ecs deploy --cluster cluster_name --service service_name --tag image_versionCheck ecs running logs of a Task -  this command will ask for cluster/service and task defination.Note:Install ecs-cli before running this command  from here:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI_installation.htmldokr ecs logDocker Helper CommandsPrune whole system -  Cleans unused images, containers and volumes.dokr dock --clean-allDelete all the images matching the patterndokr dock --clean pattern_xxxAdd a tag to the existing image matching the provided pattern  (for latest tag only)dokr dock --tag pattern_xxx tag_namePush all images on a system matching a patternThis will push all images matching pattern 'pat'dokr dock --push patAWS CommandsCheck current public ip of a machine on AWSdokr aws --ip jenkinsRun Apps (subsitute todocker runcommand and DockerCompose)Configure your default values(like docker registry, port mapping, volume mapping etc. that will be same for all apps):Add an new app for deployment:Run all configured apps:Run a particular  app from ECR tags:Run a particular  app by providing a tag:Development:Clean ununsed:rm -rf build/ dist/ *egg* **.pyc __pycache__Build package:python setup.py bdist_wheeldeploy package:python -m twine upload dist/*follow this link for more detailshttps://dzone.com/articles/executable-package-pip-install
Package: dokrtest
TESTdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdescdesc desc descdescdescdescdescdescdescdesc
Package: doks
Usagedoks[-h][--auto][--command][--force][--verbose][--windowWINDOW][source][target]DescriptionWrite a .rst document for a single Python filePositional argumentssource.py file to create documentation fortarget.rst file to write to. None means stdoutOptional arguments-h,--helpShow this help message and exit--auto,-aAutomatically guess which files to read and write--command,-cUse command line help from executing source instead--force,-fWrite .rst documentation even if it is malformed--verbose,-vPrint more stuff--windowWINDOW,-wWINDOWHow many lines around an RST error to print (0 means “print
everything”)(automatically generated bydokson 2021-01-10T17:42:40.617077)
Package: doksan
doksanA simple console application that enables hackers to get latest soccer scores and fixtures.At the present moment,doksansupports English Premier League, Spanish Primera Division and Turkish Super League.All data is being parsed fromhttp://www.scorespro.com/.InstallationInstall via pip;pip install doksan.UsageFlags and Options:Option:-l, --league: Specify which league you want to get information about. Must be provided.Option:-t, --team: Specify which team you want to get information about. Optional.Flag:-r, --isResults: Get previous results or not. When used with a team name, it returns results of last 5 games.Flag:-f, --isNextMatches: Get next games or not. When used with a team name, it returns next 5 games.Sample Usage:Sample Input:doksan -l en -t liverpool -fSample Output:16:30 Tottenham Hotspur - Liverpool
15:00 Liverpool - Southampton
17:30 Aston Villa - Liverpool
20:00 Liverpool - Leicester CitySample Input:doksan -l en -t chelsea -rfSample Output:FT Aston Villa 0 - 2 Chelsea
FT Brentford 0 - 0 Chelsea
FT Chelsea 1 - 1 Manchester United
FT Brighton & Hove Albion 4 - 1 Chelsea
12:00 Chelsea - Arsenal
17:30 Newcastle United - Chelsea
17:30 Chelsea - AFC Bournemouth
16:30 Nottingham Forest - ChelseaSample Input:doksan -l en -rSample Output:October 24
FT West Ham United 2 - 0 AFC Bournemouth

October 29
FT Leicester City 0 - 1 Manchester City
FT AFC Bournemouth 2 - 3 Tottenham Hotspur
FT Brentford 1 - 1 Wolverhampton Wanderers
FT Brighton & Hove Albion 4 - 1 Chelsea
FT Crystal Palace 1 - 0 Southampton
FT Newcastle United 4 - 0 Aston Villa
FT Fulham 0 - 0 Everton
FT Liverpool 1 - 2 Leeds United

October 30
FT Arsenal 5 - 0 Nottingham Forest
FT Manchester United 1 - 0 West Ham UnitedSample Input:doksan -l enSample Output:R T P M W D L GF GA GD
1 Arsenal 31 12 10 1 1 30 11 19
2 Manchester City 29 12 9 2 1 37 11 26
3 Tottenham Hotspur 26 13 8 2 3 26 16 10
4 Newcastle United 24 13 6 6 1 24 10 14
5 Manchester United 23 12 7 2 3 17 16 1
6 Chelsea 21 12 6 3 3 17 15 2
7 Fulham 19 13 5 4 4 22 22 0
8 Brighton & Hove Albion 18 12 5 3 4 19 15 4
9 Liverpool 16 12 4 4 4 23 15 8
10 Crystal Palace 16 12 4 4 4 13 16 -3
11 Brentford 15 13 3 6 4 19 22 -3
12 Everton 14 13 3 5 5 11 12 -1
13 West Ham United 14 13 4 2 7 11 13 -2
14 AFC Bournemouth 13 13 3 4 6 12 28 -16
15 Leeds United 12 12 3 3 6 15 19 -4
16 Aston Villa 12 13 3 3 7 11 20 -9
17 Southampton 12 13 3 3 7 11 20 -9
18 Leicester City 11 13 3 2 8 21 25 -4
19 Wolverhampton Wanderers 10 13 2 4 7 6 19 -13
20 Nottingham Forest 9 13 2 3 8 8 28 -20TODOGet scorer information for games.Styling for proper listing of games.Other leagues and teams.
Package: doku
dokuis a cli tool to read and manipulate
documents in DokuWiki via its XMLRPC endpoint.Installpip install doku

# or as a user
pip install --user doku

# upgrade
pip install --upgrade dokuConfigurationEnable XML RPC on your DokuWiki instance:Admin > Configuration Settings > AuthenticationCreate a new file:$HOME/.doku.ini[connection]
domain = domain.name.tld
username = your-username
password = your-password
ssl = true
path = /

[settings]
indexpage = root
diaryroot = diaryExample usage:❯ doku list
[2019-01-06 09:29:03] playground:playground
[2019-01-06 09:18:47] wiki:dokuwiki
[2019-01-06 09:18:47] wiki:syntax
[2019-01-06 09:18:47] wiki:welcome

doku list --namespace :playground
[2019-01-06 09:29:03] playground:playground

❯ doku edit wiki:welcome
# this will open your $EDITOR
# with the full content of the wiki page
Document saved.

❯ doku cat playground:playground
====== PlayGround ======

❯ doku --help
Usage: doku [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  cat
  edit
  list
  searchDiaryWithdiarycommands, you can use your wiki as a diary (surprise).Theshowcommand will show you all your logs (today).Thelogcommand will open up your$EDITORand after save+quit,
it will append it for your diary page (today).When you call log, doku will check all the path back and generates
content for the tree.For example:# Today is 2019-02-21 and your index is configured to be 'root'
doku diary log

# This will create the following pages if it's not exist
:diary:2019:02:21
:diary:2019:02:root
:diary:2019:root

# Will regenerate this page
# if you log an entry in a year previously was not there
:diary:root

# from stdin (pipe)
echo 'message' | doku diary log --pipe

# decorate with <code>...</code>
# automatically activated the --pipe flag
ls -la | doku diary log --code