Saravanan666/pypi-org huggingface dataset:
Package: akiokio-django-geoposition
A model field that can hold a geoposition (latitude/longitude), and corresponding admin/form widget.PrerequisitesStarting with version 0.2, django-geoposition requires Django 1.4.10 or greater. If you need to support
Django versions prior to 1.4.10, please use django-geoposition 0.1.5.InstallationUse your favorite Python packaging tool to installgeopositionfromPyPI, e.g.:pip install django-geopositionAdd"geoposition"to yourINSTALLED_APPSsetting:INSTALLED_APPS = (
    # …
    "geoposition",
)If you are still using Django <1.3, you are advised to installdjango-staticfilesfor static file serving.Usagedjango-geopositioncomes with a model field that makes it pretty
easy to add a geoposition field to one of your models. To make use of
it:In yourmyapp/models.py:from django.db import models
from geoposition.fields import GeopositionField

class PointOfInterest(models.Model):
    name = models.CharField(max_length=100)
    position = GeopositionField()This enables the following simple API:>>> from myapp.models import PointOfInterest
>>> poi = PointOfInterest.objects.get(id=1)
>>> poi.position
Geoposition(52.522906,13.41156)
>>> poi.position.latitude
52.522906
>>> poi.position.longitude
13.41156Form field and widgetAdminIf you use aGeopositionFieldin the admin it will automatically
show aGoogle Mapswidget with a marker at the currently stored
position. You can drag and drop the marker with the mouse and the
corresponding latitude and longitude fields will be updated
accordingly.It looks like this:Regular FormsUsing the map widget on a regular form outside of the admin requires
just a little more work. In your template make sure thatjQueryis includedthe static files (JS, CSS) of the map widget are included (just use{{ form.media }})Example:<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<form method="POST" action="">{% csrf_token %}
    {{ form.media }}
    {{ form.as_p }}
</form>SettingsYou can customize theMapOptionsandMarkerOptionsused to initialize the
map and marker in JavaScript by definingGEOPOSITION_MAP_OPTIONSorGEOPOSITION_MARKER_OPTIONSin yoursettings.py.Example:GEOPOSITION_MAP_OPTIONS = {
    'minZoom': 3,
    'maxZoom': 15,
}

GEOPOSITION_MARKER_OPTIONS = {
    'cursor': 'move'
}Please note that you cannot use a value likenew google.maps.LatLng(52.5,13.4)for a setting likecenterorpositionbecause that would end up as a
string in the JavaScript code and not be evaluated. Please useLat/Lng Object Literalsfor that purpose, e.g.{'lat': 52.5, 'lng': 13.4}.You can also customize the height of the displayed map widget by settingGEOPOSITION_MAP_WIDGET_HEIGHTto an integer value (default is 480).LicenseMIT
Package: akips
akipsThis akips module provides a simple way for python scripts to interact with
theAKiPS Network Monitoring SoftwareAPI interface.InstallationTo install akips, simply us pip:$ pip install akipsAKiPS SetupAKiPS includes a way to extend the server through custom perl scripts.  They publish a list from
theirSupport - Site scriptspage, along
with install instructions.This module can use additional routines included in theakips_setupdirectory of
this repository,site_scripting.pl.Usage ExamplefromakipsimportAKIPSapi=AKIPS('akips.example.com',username='api-ro',password='something')devices=api.get_devices()forname,fieldsindevices.items():print("Device:{}{}".format(name,fields))Bugs/RequestsPlease use theGitHub issue trackerto submit bugs or request features.
Package: akismet
A Python interface tothe Akismet spam-filtering service.Two API clients are available from this library:akismet.SyncClientis an Akismet API client which performs
synchronous (blocking) HTTP requests to the Akismet web service.akismet.AsyncClientis an Akismet API client which performs
asynchronous (async/await/non-blocking) HTTP requests to the
Akismet web service.Aside from one being sync and the other async, the two clients expose
identical APIs, and implement all methods ofthe Akismet web API, including the v1.2 key and API
usage metrics.To use this library, you will need to obtain an Akismet API key and
register a site for use with the Akismet web service; you can do this
at <https://akismet.com>. Once you have a key and corresponding
registered site URL to use with it, place them in the environment
variablesPYTHON_AKISMET_API_KEYandPYTHON_AKISMET_BLOG_URL,
and they will be automatically detected and used.You can then construct a client instance and call its methods. For
example, to check a submitted forum post for spam:importakismetakismet_client=akismet.SyncClient.validated_client()ifakismet_client.comment_check(user_ip=submitter_ip,comment_content=submitted_content,comment_type="forum-post",comment_author=submitter_name):# This piece of content was classified as spam; handle it appropriately.Or using the asynchronous client:importakismetakismet_client=awaitakismet.AsyncClient.validated_client()ifawaitakismet_client.comment_check(user_ip=submitter_ip,comment_content=submitted_content,comment_type="forum-post",comment_author=submitter_name):# This piece of content was classified as spam; handle it appropriately.Note that in both cases the client instance is created via the
alternate constructorvalidated_client(). This is recommended
instead of using the default constructor (i.e., directly callingakismet.SyncClient()orakismet.AsyncClient()); thevalidated_client()constructor will perform automatic discovery of
the environment-variable configuration and validate the configuration
with the Akismet web service before returning the client, while
directly constructing an instance will not (so if you do directly
construct an instance, you must manually provide and validate its
configuration).Seethe documentationfor full
details.The original version of this library was written by Michael Foord.
Package: akismet-async
akismet-asyncAn asyncronous Python 3 Akismet client library.Installationpip install akismet-asyncAPI key verificationGet your Akismet API keyhere.fromakismetimportAkismet,Commentakismet_client=Akismet(api_key="YOUR_AKISMET_API_KEY"blog="http://your.blog/",user_agent="My App/1.0.0")awaitakismet_client.verify_key()Example usageYou can check a comment's spam score by creating a dictionary or aComment()object
for greater type safety:fromakismetimportAkismet,Commentakismet_client=Akismet(api_key="YOUR_AKISMET_API_KEY"blog="http://your.blog/",user_agent="My App/1.0.0")comment=Comment(comment_content="This is the body of the comment",user_ip="127.0.0.1",user_agent="some-user-agent",referrer="unknown")first_spam_status=awaitakismet_client.check(comment)second_spam_status=awaitakismet_client.check({"user_ip":"127.0.0.2","user_agent":"another-user-agent","referrer":"unknown","comment_content":"This is the body of another comment","comment_author":'John Doe',"is_test":True,})check()returns one of the following strings:hamprobable_spamdefinite_spamunknownSubmit HamIf you have determined that a reported comment is not spam, you can report
the false positive to Akismet:awaitakismet_client.submit_ham(comment)Submit SpamIf a spam comment passes the Akismet check, report it to Akismet:awaitakismet_client.submit_spam(comment)
Package: akita-django
Akita Django IntegrationThis package extendsdjango.test.Clientin order to instrument Django
integration tests, capturing requests and responses to the service under test.
You can drop inakita_django.test.Clienteverywhere you use Django'sClient,
and Akita will use your integration tests to build a spec for your service.Why build specs?  A spec shows your service's APIs.  Using Akita to build specs
from your integration tests makes it clear what APIs your code implements --
and you can diff specs, showing what impact a code change will have on your
customers.  For more info, seeCatching Breaking Changes
Fasterin the Akita docs.See it in ActionTake a look at theAkibox Django
Tutorial, which
implements a toy Dropbox-like file server and tests it using the Akita Django
Integration.MiddlewareThis package also provides a Django Middleware class that sends
requests and responses to the Akita CLI, running in Daemon mode.
SeeDjango on Herokuin the Akita docs for more information.
Package: akita-fastapi
Akita FastAPI IntegrationThis package extendsfastapi.testclient.TestClientin order to instrument
FastAPI integration tests, capturing requests and responses to the service
under test.  You can drop inakita_fastapi.testclient.HarClienteverywhere you use
FastAPI'sTestClient, and Akita will use your integration tests to build a
spec for your service.Why build specs?  A spec shows your service's APIs.  Using Akita to build specs
from your integration tests makes it clear what APIs your code implements --
and you can diff specs, showing what impact a code change will have on your
customers.  For more info, seeCatching Breaking Changes
Fasterin the Akita docs.See it in ActionTake a look at theAkibox FastAPI
Tutorial, which
implements a toy Dropbox-like file server and tests it using the Akita FastAPI
Integration.
Package: akita-flask
Akita Flask IntegrationThis package extendsflask.testing.FlaskClientin order to instrument Flask
integration tests, capturing requests and responses to the service under test.
You can drop inakita_flask.testing.HarClienteverywhere you use Flasks'sFlaskClient, and Akita will use your integration tests to build a spec for
your service.Why build specs?  A spec shows your service's APIs.  Using Akita to build specs
from your integration tests makes it clear what APIs your code implements --
and you can diff specs, showing what impact a code change will have on your
customers.  For more info, seeCatching Breaking Changes
Fasterin the Akita docs.See it in ActionTake a look at theAkibox Flask
Tutorial, which
implements a toy Dropbox-like file server and tests it using the Akita Flask
Integration.
Package: akita-har
Akita HTTP Archive (HAR) UtilityThis package provides Pydantic models for HTTP Archive (HAR) files, along with
a thread-safe file-writer for creating and concurrently writing HAR entries.See it in ActionTake a look at theAkita Django
Integration, which extends thedjango.test.Clientto produce a HAR file containing requests and responses
from Django integration tests.
Package: akitchensyncio
akitchensyncioUtility functions for asyncio which Stephan wished where in the stdlib
but aren’t.Requires a Python version which supports theasyncsyntax (Python
3.5 or higher).InstallationTo install akitchensyncio, simply:$pipinstallakitchensyncioFunctionwrap_future(f)Takes a callablefwhich returns an awaitable, and returns a
callable which wraps the awaitable inasyncio.ensure_future.Can also be used as a decorator, especially with coroutine functions:@wrap_futureasyncdeffoo(arg1,arg2):...This is especially useful in combination withfunctools.lru_cache.
Suppose you have a coroutine function which does an asynchronous query,
and you decide you want to introduce some caching. Just add two
decorators as follows.@functools.lru_cache(100)@wrap_futureasyncdefdo_some_query(arg1,arg2):...Functiontransform_future(f, awaitable)Apply a function to the result of an awaitable, return a future which
delivers the result.As an example, suppose you have a way to query addresses given names.
The API takes a bunch of names rather than a single one to reduce
overhead. However, to your callers you would like to hand out futures
representing results for individual names.Essentially you want to turn a “future resulting in a dict” into a “dict
containing futures”. Kind of the opposite ofasync.gather.fromoperatorimportitemgetterdefquery_addresses(names):fut=do_bunched_address_query(names)# fut is a single future which resolves# into a dict mapping names to addresses.return{name:transform_future(itemgetter(name),fut)fornameinnames}Functioniawait(awaitable)“Interactive await” – Run default eventloop until awaitable has
completed. Mainly useful for interactive experimentation.Then remove the “i” fromiawaitto get code which you can use in anasync deffunction.An alternative is to put this in your~/.pythonrc.py:defiawait(x):importasyncioloop=asyncio.get_event_loop()returnloop.run_until_complete(x)This will only importasyncioon first use ofiawait, so it
won’t slow down your startup in general.
Package: akivymd
Awesome KivyMDAwesome KivyMD is a package containing customized and non-material widgets for KivyMD.InstallationUse the package managerpipto install package:# Latest versionpipinstallakivymd# Latest changespipinstallgit+https://github.com/quitegreensky/akivymd.gitIn this case you must add the following to yourbuildozer.spec# Latest version
requirements =  kivy,kivymd, akivymd
# Latest changes 
requirements =  kivy,kivymd, git+https://github.com/quitegreensky/akivymd.gitUsageYou can find usage examples in the demo app.ExamplesContributingLicenseMIT
Package: akkdict
akkdictis a simple command-line python program that takes an
akkadian word as input and opens pdfs of several akkadian dictionaries
to the right page (or somewhere thereabouts). It works well for some of
the illicit pdfs ofThe Concise Dictionary of Akkdian(CDA) andDas
Akkadishes Handwörterbuch(AHw) floating around, if you happen to have
them. It also will get you within 100 pages in theAssyrian Dictionary
of the Oriental Institute of the University of Chicago(CAD), which can
be freely downloaded fromhttp://oi.uchicago.edu/research/publications/assyrian-dictionary-oriental-institute-university-chicago-cad(naturally,akkdictalso has a helper script for this; see below).
If you would like to contribute to expanding and improving the CAD index
or any of the other indicies, we would be happy to pull from you! If you
are a humanities major and using git is too hard, contact me!InstallationInstall akkdict from PyPI with pip3!pip install akkdictIf you
don’t have pip and are unmotivated to get it on your platform, you can
download clone the source from github, enter the project directory and
runpython3 setup.py install, which will probably require root, and
you should just not do it. Just git pip.One thing to know is you must have a way to open a PDF to a specific
page number from the command line. This is no problem on Linux. Just
look at the man page for your favorite PDF reader. I hear talk that this
is possible on OS X with AppleScript. There are also command line
options for this in Acrobat Reader. I frankly don’t even know if this
package works at all on Windows, but I have my doubts. If someone who
knows something about Windows wants to contribute, please do!akkdictrequires some configuration. It will let you know about it.
The default config file has comments which explain things.UsageOpen a word in the configured dictionaries:akkdict šarruPrint the page number (and volume):akkdict-pšarruDownload the CAD into a local folder:akkdict--download-cad
Package: ak-keydetector
Ak-KeyDetectorThis package contains setup files to installapi_key_detectorto be used as a pip package.Installationpipinstallak-keydetectorUsageExample imports post installation:fromapi_key_detectorimportstring_classifierfromapi_key_detector.classifier_singletonimportclassifierDetailed UsagePlease refer to theREADMEof the module for detailed usage.
Package: akkio
akkio-pythonConvenient access to theAkkioAPI from pythonInstallationpipinstallakkioUsageimportakkioakkio.api_key='YOUR-API-KEY-HERE'# get your API key at https://app.akk.io/team-settingsmodels=akkio.get_models()['models']formodelinmodels:print(model)datasets=akkio.get_datasets()['datasets']fordatasetindatasets:print(dataset)new_dataset=akkio.create_dataset('python api test')print(new_dataset)# create a toy datasetimportrandomrows=[]foriinrange(1000):rows.append({'x':random.random()})rows[-1]['y']=rows[-1]['x']>0.5akkio.add_rows_to_dataset(new_dataset['dataset_id'],rows)new_model=akkio.create_model(new_dataset['dataset_id'],['y'],[],{'duration':1})print(new_model)prediction=akkio.make_prediction(new_model['model_id'],[{'x':0.1},{'x':0.7}],explain=True)print(prediction)
Package: akkpredict
akkpredict evx ML modelThis is a simplified version ofevxpredictorpackage used to generate buy and sell signals for crypto and conventional stock markets based on the excess volume indicator(EVX). EVX is a concept where the bid-ask spread is estimated inherently from current market prices.You can read more about Evx in the free whitepaperhereInstallationInstall akkpredict withpython3 -m pip install akkpredictUsageIn your python script simply import the module and use as follows:from akkpredict.moonapi import Moon, signal
print(signal(20,65,utcdatetime))The above methods take an assets open, close prices of the asset based on the time interval you have chosen in OHCLV type. A zero classification output would instruct the user to sell, while one output means don't sell or buy if the asset is not already present in the orders.WarningThis is not financial advise. akkpredict is entirely on its preliminary stages. Use it at your own risk.
Package: akl-cameras
AKL CamerasTool that allow to operate cameras owned by AKL.InstalationInstall required packageManjaro:$sudopamacinstallgphoto2Fedora:$sudodnfinstallgphoto2RaspberyPi:$sudoaptinstallgphoto2Setup repository$gitclonegit@gitlab.com:academic-aviation-club/droniada-2024/akl-cameras.git
$cdakl-cameras
$poetryinstall--no-root
$poetryshellSetup repository on RaspberyPi:$gitclonegit@gitlab.com:academic-aviation-club/droniada-2024/akl-cameras.git
$cdakl-camerasHardware preparationConnect camera to the on-board computer,
Package: aklite
IntroductionAKLite is a lite version of AKShare, which will be used in the future to support the AKShare project.AKLite Features:Small, fast and powerfulHigh performanceEasy to uesInstallationpipinstallaklite--upgrade-ihttps://pypi.org/simpleUsageimportakliteasaistock_zh_a_hist_obj=ai.stock_zh_a_hist(symbols=["000001","000002"],period="daily",start_date="20220101",end_date="20230601",adjust="hfq",timeout=5,proxies={})print(stock_zh_a_hist_obj.data)print(stock_zh_a_hist_obj.columns)print(stock_zh_a_hist_obj.url)print(stock_zh_a_hist_obj.desc)print(stock_zh_a_hist_obj.symbols)print(stock_zh_a_hist_obj.start_date)print(stock_zh_a_hist_obj.end_date)print(stock_zh_a_hist_obj.adjust)datesymbol...price_changeturnover_rate02022-01-04000001...29.260.6012022-01-05000001...79.631.0122022-01-06000001...-4.870.5732022-01-07000001...13.000.5842022-01-10000001...-1.620.47
.................6772023-05-26000002...2.620.426782023-05-29000002...-23.560.466792023-05-30000002...43.200.916802023-05-31000002...-15.710.466812023-06-01000002...-31.420.48[682rowsx12columns]ContributingTranslatecddocs
sphinx-build-bgettext./sourcebuild/gettext
sphinx-intlupdate-p./build/gettext-lzh_CNPublishhatchbuild
hatchpublish
Package: ak_loading
Work in ProgressPurposeCalculationScopeapp1scope1app2app3DisclaimerAlthough this calculator has been formally checked for technical correctness, it is not a substitute for engineering judgement, and does not relieve users of their duty to conduct required checking and quality control procedures.ReferencesS. No.ReferenceYear1.CSA A23.320192.CSA S162019Color referenceColorLegend#RedError#YellowWarning message#GreenOK#BlueAuthor's notesInstructions for useReview all information on the cover sheetFrom the side bar, choose one of the pages availableProceed to calculations by filing in all the valuesReview entire workbook after completionYou may collapse the side bar and print the page usingCtrl+Pto save the calculation as PDF.Version Notes and releasesVersionv0.1Version NotesDraft web-releaseVersion Date2022 - August - 24
Package: aklogger
akloggerKeep track of all the events happening in your project: A generic logging package for python projects.[Features]Logging to consoleLogging to filePush logs to slackInstallation$ pip install akloggerUsageFollowing script will log messages to slack, file and console:fromakloggerimportloggerlogger.set_name('mycroft')logger.setLevel('DEBUG')# This will log to consolelogger.info('Some Dummy log','Some dummy details of the dummy log')# Enable File loglogger.log_to_file('file.log')# This will log to file and consolelogger.info('Some Dummy log','Some dummy details of the dummy log')# Enable Slacklogger.enable_slack(SLACK_TOKEN)# Set slack levellogger.set_slack_level('WARNING')# Now the logs will be log to slacklogger.warning('Some Dummy log','Some dummy details of the dummy log')# You can also do a force push to slack no matter what the slack level is set.logger.info('Dummy log','Details of the dummy log',force_push_slack=True)Seepython logging docsfor more uses.
Package: ak-M2Crypto
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
DH, EC, HMACs, message digests, symmetric ciphers (including AES); SSL
functionality to implement clients and servers; HTTPS extensions to Python’s
httplib, urllib, and xmlrpclib; unforgeable HMAC’ing AuthCookies for web
session management; FTP/TLS client and server; S/MIME; ZServerSSL: A HTTPS
server for Zope and ZSmime: An S/MIME messenger for Zope. M2Crypto can also be
used to provide SSL for Twisted. Smartcards supported through the Engine
interface.
Package: ak-macholibre
Note to the author: Please add something informative to this READMEbeforereleasing your software, asa little documentation goes a long way.  Both
README.rst (this file) and NEWS.txt (release notes) will be included in your
package metadata which gets displayed in the PyPI page for your project.You can take a look at the README.txt of other projects, such as repoze.bfg
(http://bfg.repoze.org/trac/browser/trunk/README.txt) for some ideas.CreditsDistributeBuildoutmodern-package-template
Package: akms-logs
AKMS Logs PackageA template of README best practices to make your README simple to understand and easy to use.Table of ContentsInstallationUsageSupportContributingInstallationInstall the package using pip:pipinstallakms-logsUsagefromakms_logsimportlogasakms_loggerlog()SupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: akparse
akparse packageA simple and easy-to-use CLI parse tool package. You can use '-', '--', ',', '|', '{', '}', '[', ']', '=' and character
to define your CLI API and the constraints are as follows:'-' : indicate a short option, followed by a character usually.'--': indicate a long option, followed by a word usually.',' : indicate a required option of one CLI API defined.'|' : indicate a parallel option of one CLI API defined with same prefix.'{}': indicate the parallel option, always with '|' together.'[]': indicate the optional option.'=' : indicate the k-v option.eg, one disk-file API:# create a disk file when be defined: --create,-p=[--user=,-a=]disk-file--create-pfile_path
disk-file--create-pfile_path--useru1-a777# query a disk file  when be defined: --query[{-p=|--list}]disk-file--query
disk-file--query-pfile_path
disk-file--query--listusageimportsysfromakparse.parsersimportAkParserfromakparse.utils.ak_echoimportAkEchofromakparse.errs.ak_errorimportAkErrorflag_name=Noneflag_options=Nonetry:file_parser=AkParser()file_parser.add("help","{-h|--help}")file_parser.add("file_create","--create,-p=[--user=,-a=]")file_parser.add("file_query","--query[{-p=|--list}]")file_parser.add("file_set","--set{-p=,--user=,-a=|--limit=}")file_parser.add("file_delete","--delete,-p=[--user=]")file_parser.add("file_status","--status")flag_name,flag_options=file_parser.parse(sys.argv[1:])exceptAkErroraserr:AkEcho.ak_err(AkError.ERROR_PARSE_MSG+err.msg)# Print parse resultAkEcho.ak_echo(flag_name)AkEcho.ak_echo(flag_options)Please see more detail usage in examples
Package: ak-phrase.py
ak-phrase.pyThis library generates all the permutations of sentences from words in a 2D array.It follows the word orders in sentence, same as the words order in array column wise.Installation$ pip3 install ak-phrase.pyUsagefromak-phase.pyimportSentenceGeneratorword_lists=[['eat'],['code','commit'],['sleep']]sentences=SentenceGenerator.generate_sentences(word_lists)print(sentences)# Output:# [ 'eat code sleep', 'eat commit sleep' ]ContributingInterested in contributing to this project?
You can log any issues or suggestion related to this libraryhereRead our contributingguideon getting started with contributing to the codebaseContributors