Saravanan666/pypi-org huggingface dataset:
Package: jocassid-commons
jocassid-commonsOverviewMiscellaneous utility code written in Python.  Modules within this library
include:accumulator_dictAccumulatorDict- Adictwhere keys are lists or sets andaccumulator_dict[key] = valuewill addvalueto the list or set for that keydata_structuresMergeQueue- An Iterable that merges data from two or more iterables or
iterators.  It's original purpose was to merge two iterables of sorted data
while retaining the sort order.dirfContains thedirffunction a wrapper around the built-indirfunction that adds filtering capabilities.jsonjson_getfunction for extracting data from within
nested lists and dicts such as those returned from a JSON api.locate_keyfunction for searching through JSON for a dict key matching a regular expressionChangelog0.0.4Addeddirfmodule0.0.6Addeddata_structuresmodule0.0.7Addedstringmodule with normalize_whitespace function0.0.8Addedjson.locate_keyfunctionGotdirf.dirfworking.
Package: jocker
jockergeneratesDockerfilesfromJinja2based template files. You
can optionally build an image from the generated file and even more
optionally, push it to a hub.Requirementsmust be run sudo-ically due to Docker’s sudo requirement!Python 2.6/2.7 (errr… NO TESTS YET? what a n00b!)DockerInstallationpipinstalljockerTestingDisclaimer in broken english: This like 5 hours project. Tests yet, No.
Hold as test being wroten. Yes.Usagejocker-hScripttorunjokcerviacommandlineUsage:jocker[--varsfile=<path>--templatefile=<path>--outputfile=<path>--dockerconfig=<path>--dryrun-v][--build=<string>|--push=<string>]jocker--versionOptions:-h--helpShowthisscreen.-f--varsfile=<path>Pathtovarsfile(ifomitted,willassume"vars.py")-t--templatefile=<path>PathtoDockerfiletemplate-o--outputfile=<path>PathtooutputDockerfile(ifomitted,willassume"Dockerfile")-c--dockerconfig=<path>Pathtoyamlfilecontainingdocker-pyconfiguration-d--dryrunWhethertoactuallygenerate..orjustdryrun-b--build=<string>ImageRepositoryandTagtobuild-p--push=<string>ImageRepositoryandTagtopushto(willtarget--build)-v--verboseaLOTofoutput(Note:shouldbeusedcarefully..)--versionDisplaycurrentversionofjockerandexitGeneratingAvarsfilecontaining a dict namedVARSshould be supplied
(if omitted, will default to vars.py).Atemplatefileshould Jinja2-ly correspond with the variables in
the aforementionedVARSdict (if omitted, will default to
Dockerfile.template)Anoutputfileshould be given (if omitted, will default toDockerfile)DryrunIf Dryrun is specified, the output of the generated template will be
printed. No file will be created.Build and PushYou can let jocker know that after the Dockerfile was generated, you’d
like to eitherBuilda Docker image and optionally Push it to your
chosen repository.Note that for this to work you must be logged in to Docker Hub or your
private images repo from your shell.Also note that for either of these features to work you MUST be sudo’d
as it’s a prerequisite of Docker.Also also note that you can’t specify both –build and –push as –push
triggers a build process anyway.docker-py configuration forbuildandpushAdockerconfigyaml file can be specified which includes something
like this:client:base_url:'unix://var/run/docker.sock'version:'1.14'timeout:10build:quiet:falsenocache:falserm:falsestream:falsetimeout:encoding:This is the configuration for the docker client and for the build
process as mentioned inhttps://github.com/docker/docker-py.VagrantThe Vagrantfile supplied (which I haven’t finished yet.. will let you
know once it’s ready) will loadz a vbox machine, install docker and
jocker on it, generate a docker image from a template and run a
container based on the image in a daemonized mode to demonstrate the
KRAZIE RAW POWER of jocker (and docker.. I guesswink)ContributingPlease do.
Package: jockmkt-sdk
This is an unofficial wrapper built to interface with the Jock MKT API.The developer of this sdk is in no way affiliated with Jock MKT – please use at your own risk.The aim of this SDK is to build a host of easy-to-use tools for users to interact with the Jock MKT API. It includes every possible api call, every optional argument, and objects that organize all of their responses. In the future, additions will be made to further simplify these api calls with the addition of useful tools.JockMKT Official API DocsCode snippet# the following code will buy $50 worth of shares for every player in an event# whose last traded price is less than the estimated priceclient=Client()client.get_auth_token(secret_key,api_key)event=client.get_event(event_id,include_tradeables=True)fortradeableinevent.tradeables:iftradeable.last<tradeable.estimated:auth.place_order(tradeable.id,price=tradeable.estimated,size=50)Installation (via PyPi)pipinstalljockmkt-sdkPyPi LinkNote: If you have problems installing, please ensure that you have updated pip and setuptools. If you still have trouble, please install requirements manually.ContributeSource:https://github.com/nysugfx/jockmkt-sdkIssue Tracker:https://github.com/nysugfx/jockmkt-sdk/issuesDocsReadTheDocsFeaturesCalls for every API endpointException handlingSimple auth token generation & useSimple order placementGetting StartedObviously, create an account atjockmkt.comContactdevelopers@jockmkt.comfor your auth keysAuthorization & basic calls:fromjockmkt-sdk.clientimportClientapi_key='<jm_key_xxx>'secret_key='<xxx>'client=Client(secret_key,api_key)#display the first 100 nba entitiesplayers=client.get_entities(start=0,league='nba')#get 25 recent and upcoming events:events=client.get_events()#get the last 500 events:fetchall_events=[]foriinrange(5):fetchall_events.append(client.get_events(start=i,limit=100))#get a single event:event_id=events[0].event_idevent=client.get_event(event_id,include_tradeables=True)#join an event:entry=client.create_entry(event_id)#view event profit:print(entry.profit)#view event tradeables:tradeables=event.tradeables#pick a specific player and place an order during IPO phase at the Jock MKT estimated price:forplayerintradeables:ifplayer.name=='Paul George':client.place_order(player.tradeable_id,player.estimated)#buy a specified $ amount worth of a player at the market price, during live trading:order=client.create_order(id=player.tradeable_id,price=player.ask,phase='live',order_size=100)#cancel orderclient.cancel_order(order['order']['id'])Contactnysu.gfx@gmail.com
Package: jocular
JocularJocular is a tool forElectronically-Assisted Visual Astronomy.Jocular supports the observation of astronomical objects in near real-time by connecting up a camera to a telescope or suitable lens. It also supports session-planning through extensive deep sky object (DSO) databases, helps to manage your captures, and
enables the reloading of previously-captured images.Jocular is documented onRead the Docs.
Package: joda-misc
This is a Django powered miscellaneous documents backend for Joda - a simple reference
management web application. For details see thehomepageormain repository.Quick startInstall packagepip install joda_miscinside Joda virtual environment.Add Joda Misc to yourINSTALLED_APPSandJODA_FEATURESsettings:INSTALLED_APPS = [
    ...
    'joda_misc',
]

JODA_FEATURES = [
    ...
    'misc',
]Runpython manage.py migrateto create the misc content models.ContributingThere are several guidelines on contributing to Joda:Submitting issuesProposing a new featureSubmiting a pull-requestBuilding instructionsCopyright infoCopyright (C) 2016-2017 Tadej NovakThis project may be used under the terms of the
GNU Affero General Public License version 3.0 as published by the
Free Software Foundation and appearing in the fileLICENSE.md.
Package: jodev-emailpy
jodev_emailpyA Python package that helps you send and recieve email directly using emailjs restful serviceGetting StartedTo install into your python environment usepip install jodev-emailpyOn successfull installation , you are ready to start using jodev_emailpy to start recieving and sending email directly from your client side application no backend server neededUseageTo send a message to your configured emailfromjodev_emailpyimportEmailPyPUBLIC_KEY:str="YOUR-PUBLIC-KEY-FROM-EMAILJS"SERVICE_ID:str="YOUR-SERVICE-ID-FROM-EMAILJS"TEMPLATE_ID:str="YOUR-TEMPLATE-ID-FROM-EMAILJS"TEMPLATE_PARAMS:dict={# customize to fit as per your template variables requirement e.g"email_id":"jodek@gmail.com","message":"hello test mssg"}# input your public_key to initialize the clientclient=EmailPy(PUBLIC_KEY)client.send(service_id=SERVICE_ID,template_id=TEMPLATE_ID,template_params=TEMPLATE_PARAMS)To retrieve a list of email historyACCESS_TOKEN="YOUR-ACCESS-TOKEN-SECRET-KEY"response=client.get_history(access_token=ACCESS_TOKEN)Other optional arguments to pass to get_history method are :count : int  #this is the count of email history to retrievepage : int default is 1 . this helps for paginationnote access token can then be omitted for successive call of get_history()if response status is 200 without error you should be able to retrieve email historyprint(response.json()['rows'])ensure you have signed up on emailjs website so as to have access to credentials needed. if not, here is their website link to sign uphttps://dashboard.emailjs.com/sign-up
Package: jodotnetmodules
JoDotNetModulesThis Library will give you access to the latest videoes of a YouTube channel and Twitch Live notifications.
It is easy to install; you only run the setup and do routine checks.It is best used with Discord BotsYouTube ExampleimporttimefromjodotnetmodulesimportyoutuberequestsCHANNEL_ID="Enter_YouTube_Channel_ID"API_KEY="Enter_Your_Secret_API_Key"LOCATION=r"C:\Users\user\Desktop\ExampleFolder"# Only run this once, if you run it multiple times it will mess the files up.youtuberequests.SETUP(id=CHANNEL_ID,key=API_KEY,location=LOCATION)# This loop will print out the status, if there is any new videos it will print it out.whileTrue:request=youtuberequests.CheckVideos(location=LOCATION)print(request)time.sleep(1800)
Package: joeflow
joeflowThe lean workflow automation framework for machines with heart.Joeflow is a free workflow automation framework designed to bring
simplicity to complex workflows. Joeflow written inPythonbased on
the world famousDjangoweb framework.Here is a little sample of what a workflow written in joeflow may look
like:fromdjango.core.mailimportsend_mailfromjowflow.modelsimportWorkflowStatefromjoeflowimporttasksfromjoeflow.workflowsimportWorkflowclassShipment(WorkflowState):email=models.EmailField(blank=True)shipping_address=models.TextField()tracking_code=models.TextField()classShippingWorkflow(Shipment,Workflow):checkout=tasks.StartView(fields=["shipping_address","email"])ship=tasks.UpdateView(fields=["tracking_code"])defhas_email(self):ifself.email:return[self.send_tracking_code]defsend_tracking_code(self):send_mail(subject="Your tracking code",message=self.tracking_code,from_email=None,recipient_list=[self.email],)defend(self,task):passedges=[(checkout,ship),(ship,has_email),(has_email,send_tracking_code),(has_email,end),(send_tracking_code,end),]Design PrinciplesCommon sense is better than conventionJoeflow does not follow any academic modeling notation developed by a
poor PhD student who actually never worked a day in their life.
Businesses are already complex which is why Joeflow is rather simple.
There are only two types of tasks – human & machine – as well as edges
to connect them. It’s so simple a toddler (or your CEO) could design a
workflow.Lean Automation (breaking the rules)Things don’t always go according to plan especially when humans are
involved. Even the best workflow can’t cover all possible edge cases.
Joeflow embraces that fact. It allows uses to interrupt a workflow at any
given point and modify it’s current state. All while tracking all
changes. This allows developers to automate the main cases and users
handle manually exceptions. This allows you businesses to ship
prototypes and MVPs of workflows. Improvements can be shipped in
multiple iterations without disrupting the business.PeopleJoeflow is build with all users in mind. Managers should be able to
develop better workflows. Users should able to interact with the tasks
every single day. And developers should be able to rapidly develop and
test new features.FreeJoeflow is open source and collaboratively developed by industry leaders
in automation and digital innovation.Photo by rawpixel.com from Pexels
Package: joeldata
JoelDataSimple data types I use in my projects.pip3installjoeldataDocumentationStackFIFO (like a stack of cups)fromjoeldataimportStackmy_stack=Stack()push(item)- adds new itempop() -> item- removes itempeek() -> item- see top item without removingis_empty() -> boolQueueLIFO (like a line at a store)fromjoeldataimportQueuemy_q=Queue()enqueue(item)- add new itemdequeue() -> item- remove an itempeek() -> item- see the item that next to be dequeuedis_empty() -> boolBST (aliased to Binary Search Tree)Stores a list of numbers in a tree where each node can have up to two chiuldren. The left node is always less than the parent node and the right node is always greater than the parent node.fromjoeldataimportBSTmy_bst=BST()add(item)- adds an item to the BSTsearch(value) -> bool- sees if a value is in the BSTinorder() -> item[]- returns the items as an array in orderremove(item)- removes an item from the BSTHashTableImplementation of the object in JavaScript,java.util.HashMapin Java, and dictionary in Python.fromjoeldataimportHashTablemy_ht=HashTable()get(key) -> value- returns the HashMap's value of the keyset(key, value)- sets the HashMap to your value at the keyclear()- removes all the key-value pairs, emptying the HashMap.remove(key) -> value- removes the key-value pairs at the specified key. Returns the removed value.size() -> int- returns the number of key-value pairs.is_empty() -> bool- returns whether or not the HashMap has no key-value pairs.has(key) -> bool- returns whether or not the HashMap has a key-value pair of the specified key.keys() -> any[]- returns all the keys of the HashMap in an array.values() -> any[]- returns all the values of the HashMap in an array.inspect() -> str- returns the raw self.data for development purposesExample>>>fromjoeldataimportHashTable>>>ht=HashTable()>>>ht.set('hi','world')>>>ht.get('hi')'world'>>>ht.set('things',['joel','bowl'])>>>print(ht)HashTable{things:['joel','bowl'],hi:world}>>>ht.has('hi')True>>>ht.size()2>>>ht.keys()['things','hi']>>>ht.values()[['joel','bowl'],'world']>>>ht.remove('things')['joel','bowl']>>>print(ht)HashTable{hi:world}>>>ht.clear()>>>print(ht){}
Package: joes-ntpdate
Joe’s Own ntpdateSet the date and time via NTP.Assumes bsd or gnu date(1) and gnu hwclock(8) if applicable.This implementation doesn’t mess around.  It requires root privileges,
and sets the operating system and hardware clock to whatever value
is found by the given ntp server.usage: joes-ntpdate [-h] [--set-system] [--set-hwclock] [--retries [N]]
                    [--backoff-factor N]
                    [ntp_host]

Joe's own ntpdate: report or set clock by remote ntp host.

positional arguments:
  ntp_host            remote ntp host to synchronize clock with. (default:
                      pool.ntp.org)

optional arguments:
  -h, --help          show this help message and exit
  --set-system        Set system clock to remote time. (default: False)
  --set-hwclock       additionally, set hardware clock. May do nothing on
                      platforms without hwclock(8) (default: False)
  --retries [N]       retry on failure up to N times. (default: 30)
  --backoff-factor N  retry backoff each step, sleep for {{<backoff-factor> *
                      <retry-step>}} (default: 2.0)

Assumes bsd or gnu date(1) and gnu hwclock(8) if applicable.This package usesntplib
Package: joetags
JoetagsDECREASES file tree complexityINCREASES your ProductivityJoetags is a cli app to organize projects in a meaningful way for humans and machines
You can Tag all your projects/directories to easily find them inside huge parent directories.A branch of a branch of a branch of a branch is history.Projects are Complex and not Black and White, they can be written in a particular language, be artistic at the same time, and made for a specific client. They can be about biology while being about chemics. The world is sometimes more complex than it seems. But Directory Trees force us to classify projects with just one property.However with joetags you can add as many tags to directories as you want and easily find stuff.
Aditionally labeled projects/directories can be made more accessible to automated processes.InstallingInstall and update using pip:pip install joetagsHow Joetags improves WorkingBefore using Joetags you may have a file tree like this:User/projects/pyUser/projects/py/mlUser/projects/py/botsUser/projects/py/artUser/projects/goUser/projects/go/hardwareUser/projects/phpafterUser/projectswhere all your projects are live!
Simply search py for all py tagged projects or search py|php to get all py or php tagged projectsHow to search for directoriesjoetags search 'expr'expressions can have unions:| intersections:& and can be negated:!Examplespython|(php&machine_learning): finds all python projects or php machine learning_projectspython&!utility: all python projects not tagged with utility
findsHow to Write .joetag FileTags can use all letters, numbers and underscores and have to begin with a letter
Tagnames can be followed by a Groupname (same syntax) seperated by :tag:grouppython:programming  
hobby  
michael_deangelo:clientJust typejoetags addfollowed by a directory to easily add tagsWhy are tags and groups handled the same in searchjoetag search 'socialmedia'does not care if socialmedia is a tag or a group, why is that?groups may be tags for other groups:
if socialmedia is a group in one place it could be a tag in another placesocialmedia:socialhowever it mustn't only have one 'parent' groupsocialmedia:socialsocialmedia:internetcan both coexist in joetagsWhile the same could be achived with less characters and no duplicates we root for easy usage and syntax
Package: joey
joeyAsync web framework on top offastapiandormHow to startLet's create demo project$mkdirdemo-project
$cddemo-project
$pipenvinstalljoey
$pipenvshell
$joeyinitJoey will create the following project structure.
├──alembic.ini
├──asgi.py
├──migrations
│├──env.py
│├──script.py.mako
│└──versions
└──settings├──common.py├──common.yml├──development.py└──__init__.pyLet's add the application to the given project structure$joeyaddhello# or with autoregister parameter$joeyadd-ahelloJoey will add the following files in a separate folder.
└──hello├──__init__.py├──models.py└──routes.pyIf you use-aflag thenjoeyautomatic register your app and route in project settings fileAPPLICATIONS:-helloROUTES:hello:prefix:/hellotags:-hellootherwise manually editsettings/common.ymlfile.Now implement model in filehello/models.pyclassItem(Model):id=orm.Integer(primary_key=True)text=orm.Text()Implement a simple route inhello/routes.py, than can access to databasefromfastapiimportAPIRouter,HTTPExceptionfrompydanticimportBaseModelfromhello.modelsimportItemasItemDBclassItem(BaseModel):text:strrouter=APIRouter()@router.post('/{id}',response_model=Item)asyncdefitem(id:int)->Item:try:returnawaitItemDB.objects.get(id=id)exceptItemDB.DoesNotExist:raiseHTTPException(status_code=404,detail='Item not found')Next step - create a database, then migrate it and add a couple of elements$joeyrevise'init database'$joeymigrate
$sqlite3db.sqlite"insert into items (text) values ('hello'), ('joe here');"Everything is ready, now you can start with uvicorn$joeyrun# or$uvicornasgi:app--reloadAnd request data with Swagger UI byhttp://localhost:8000/docs.
Package: joeynmt
Joey NMTJoey NMT is a minimalist neural machine translation toolkit for educational purposes.It aims to be acleanandminimalisticcode base to help novices pursuing the understanding of neural machine translation.InstallationJoey NMT is built onPyTorch. Please make sure you have a compatible environment.
We tested Joey NMT v2.3 withpython 3.11torch 2.1.2cuda 12.1WarningWhen running onGPU, you need to manually install the suitable PyTorch version
for yourCUDAversion.
SeePyTorch installation instructions.You can install Joey NMT either A. viapipor B. from source.A. Via pip (the latest stable version)python-mpipinstalljoeynmtB. From source (for local development)gitclonehttps://github.com/joeynmt/joeynmt.git# Clone this repositorycdjoeynmt
python-mpipinstall-e.# Install Joey NMT and it's requirementspython-munittest# Run the unit testsUsageFor details, check out ourdocumentation!1. Torch Hubimporttorchmodel=torch.hub.load("joeynmt/joeynmt","wmt14_ende")translations=model.translate(["Hello world!"])print(translations[0])# "Hallo Welt!"2. Command-line Interfacepython -m joeynmt {train,test,translate} CONFIG_PATH [-o OUTPUT_PATH] [-a] [-s] [-t] [-d]

positional arguments:
  {train,test,translate}    Train a model or test or translate
  CONFIG_PATH               Path to YAML config file

options:
  -h, --help                show this help message and exit
  -o OUTPUT_PATH, --output-path OUTPUT_PATH
                            Path for saving translation output
  -a, --save-attention      Save attention visualizations
  -s, --save-scores         Save scores
  -t, --skip-test           Skip test after training
  -d, --use-ddp             Invoke DDP environmentFor example:trainingpython-mjoeynmttrainconfigs/transformer_small.yaml--use_ddp--skip-testtestingpython-mjoeynmttestconfigs/transformer_small.yaml--output-pathmodel_dir/hyp--save-scores--save-attentiontranslationpython-mjoeynmttranslateconfigs/transformer_small.yaml<input.txt>output.txtCitationIf you use Joey NMT in a publication or thesis, please cite the followingpaper:@inproceedings{kreutzer-etal-2019-joey,
    title = "Joey {NMT}: A Minimalist {NMT} Toolkit for Novices",
    author = "Kreutzer, Julia  and
      Bastings, Jasmijn  and
      Riezler, Stefan",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP): System Demonstrations",
    month = nov,
    year = "2019",
    address = "Hong Kong, China",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/D19-3019",
    doi = "10.18653/v1/D19-3019",
    pages = "109--114",
}
Package: joffrey
Yet Another Command-Line-Argument ParserI'm tired of working around argparse. This suits my needs a tad better; vaguely inspired bydiscord.py's brilliantext.commandsframework.Why?I needed a way to define sort-of-complex interdependencies between command-line options. None of the packages
I found* were able to handle this out of the box to an acceptable degree, so I decided to try my own hand;
I feel like the lib should be able to handle this stuff itself, without your needing to delegate roles like"check
that these two flags aren't used at the same time as this arg"or"make sure all these things appear
together, or alternatively that this second thing does"to external functions or post-parsing if-statements.*Note: about a month after starting I discovered "RedCLAP", which did beat Joffrey
to the idea of AND/OR/XOR clumps (by the names of "requires", "wants", and "conflicts"), albeit with a very different
design philosophy overall; credit's due for (AFAIK) originating that concept, however! I also at about the same time
foundargh, which despite not solving the clumping issue appears
to (by pure coincidence) share a number of features with Joffrey -- but it's currently looking for maintainers and does
depend on argparse underneath (which I'm trying my best to get away from), so I'd say we're good.Joffrey, by the way, is still an experiment. If it really doesn't solve the same problem for you that it does for me,
I think you'd be better off trying something else --here's a listof alternatives to check out!The nameParsley, forparsing, is called جعفری /d͡ʒæʔfæˈɾi/ in Farsi. That glottal stop is elided into a vowel in Iran,
giving /d͡ʒæːfæˈɾi/, and if you squint hard enough that resembles a heavily accented pronunciation of "Joffrey".