Saravanan666/pypi-org huggingface dataset:
Package: dcxml
Dublin Core XML generation from Python dictionaries.Free software: MIT licenseDocumentation:https://dcxml.readthedocs.io/ChangesVersion 0.1.2 (released 2020-05-06)Deprecated Python versions lower than 3.6.0. Now supporting 3.6.0 and 3.7.0.Version 0.1.0 (released 2016-03-21)Initial public release.
Package: dcyd
DCYD Model Performance Monitoring ClientVisithttps://www.dcyd.io/for more details.InstallRequires Python 3 before startUsing pippip3 install dcyd -UUsing pipenvpipenv install dcydConfigureGenerate thedcyd.jsonconfiguration filedcyd-config$DCYD_PROJECT_ID$DCYD_PROJECT_ACCESS_TOKENPoint theDCYD_CONFIG_FILEenvironment variable to the above file locationexportDCYD_CONFIG_FILE=/path/to/project/dcyd.jsonUsageSimple monitoringfromdcydimportdcyd@dcyd.monitordefmy_predict_function(features):result=None# run my model(s) logicreturnresultTransform function arguments before sending outfromdcydimportdcyd@dcyd.monitor(transformers={'arg1':lambdavalue:value+1,'arg2':lambdavalue:value-1,'arg3':lambdavalue:value*-1,})defmy_predict_function(arg1,arg2=2,arg3=10):result=None# run my model(s) logicreturnresultTransform function return value before sending outfromdcydimportdcyd@dcyd.dcyd.monitor(return_transformer=lambdavalue:value+1)defmy_predict_function():return0Turn on writing data to a local fileSet the environment variableDCYD_CLIENT_FILE_LOGGERwith the file path you want to write to.An example is:export DCYD_CLIENT_FILE_LOGGER=/tmp/dcyd-client.logDisable sending data to DCYDMake sure thedcyd.jsonfile isabsentfrom your project directory.And make sure these environment variables areabsentfrom the process. You can unset them by running the following:unset DCYD_CONFIG_FILE
unset DCYD_PROJECT_ID
unset DCYD_PROJECT_ACCESS_TOKEN
Package: dd
dd is a package for working with binary decision diagrams that includes both a pure Python implementation and Cython bindings to C libraries (CUDD, Sylvan, BuDDy). The Python and Cython modules implement the same API, so the same user code runs with both. All the standard operations on BDDs are available, including dynamic variable reordering using sifting, garbage collection, dump/load from files, plotting, and a parser of quantified Boolean expressions. More details can be found in the README at:https://github.com/tulip-control/dd
Package: ddah-promises
Django’s promises egg.Getting StartedAdd “ddah-promises” to INSTALLED_APPS:INSTALLED_APPS = {
...
# If you don't previously have taggit you should probably add it
'taggit',
'ddah-promises',
...
}Include the ddah-promises URLconf in urls.py:url(r'^ddah-promises/', include('ddah-promises.urls'))Runpython manage.py syncdbto create ddah-promises’s models:$ python manage.py syncdbThis project is licensed under the GNU Affero General Public License (AGPL). For more information you can access to thedigital license edition here.Everything elseFor more information about us, our siteFundación Ciudadano Inteligente.
And if you want help with patches, report bugs or replicate our project checkour repositories.
Package: ddalg
ddalgAlgorithms and data structures for my Python projects.Interval treeInterval tree is a data structure for holding intervals and to allow efficiently find intervals that overlap with given interval or point. Read more onWikipedia.Implementation noteThis implementation uses half-open intervals, where begin coordinate is excluded. Half-open intervals are used in e.g.BED genomic format.The current implementation needs to rebuild the tree after eachinsert, hence the tree is not efficient for using inread/writefashion.Usageimplement your custom interval object while extendingInterval. Two properties need to be overwritten:begin- 0-based (excluded) begin coordinate of the intervalend- 0-based (included) end coordinate of the intervalfromddalg.modelimportIntervalclassYourInterval(Interval):def__init__(self,begin:int,end:int):self._begin=beginself._end=end# anything else@propertydefbegin(self):returnself._begin@propertydefend(self):returnself._endcreate a collection of your intervals and store them in the interval tree:fromddalg.itreeimportIntervalTreeitree=IntervalTree([YourInterval(0,3),YourInterval(1,4)])# ...queryitree:using 1-basedposition:itree.search(1)returns(0,3)using half-openinterval coordinates:itree.get_overlaps(0,1)returns(0,3), effectively the same query as abovefor intervals with minimal required coverageitree.fuzzy_query(0,1,coverage=.90)return intervals with >=.9 overlap with respect to query coordinatesfor intervals with minimal jaccard indexitree.jaccard_query(0,1,min_jaccard=.90)return intervals having jaccard_index>=.9 with respect to query coordinates
Package: dd-aliyun-python-sdk-cdn
aliyun-python-sdk-cdn
This is the cdn module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-cms
aliyun-python-sdk-cms
This is the cms module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-cs
aliyun-python-sdk-cs
This is the cs module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-ecs
aliyun-python-sdk-ecs
This is the ecs module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-rds
aliyun-python-sdk-rds
This is the rds module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-r-kvstore
aliyun-python-sdk-r-kvstore
This is the r-kvstore module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-slb
aliyun-python-sdk-slb
This is the slb module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: dd-aliyun-python-sdk-vpc
aliyun-python-sdk-vpc
This is the vpc module of Aliyun Python SDK.Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.This module works on Python versions:2.6.5 and greater
Documentation:Please visithttp://develop.aliyun.com/sdk/python
Package: ddapi
ddapi is an api from the ddnet and qwik websiteInstallationpipinstallddapiUsage/ExamplesDDnetimportasynciofromddapiimportDDnetApi,DDPlayerasyncdefmain():obj=DDnetApi()nickname="Cor"user:DDPlayer=awaitobj.player(nickname)ifuserisNone:return"Player not found"print(f"{user.player}:{user.points.points}")# Cor: 31473awaitobj.close()# Closing client Not necessaryassertisinstance(user,DDPlayer)asyncio.run(main())qwikimportasynciofromddapiimportPlayer,QwikAPIasyncdefmain():obj=QwikAPI()nickname="ByFox"user=awaitobj.player(nickname)ifuserisNone:return"Player not found"print(f"{user.player}:{user.points.points}")# Cor: 31473awaitobj.close()# Closing client Not necessaryassertisinstance(user,Player)asyncio.run(main())
Package: ddaptools
DDAP ModulesIntroductionHere some useful modules to be used when for the development of DDAPSo they can be plugged into ddanalytics applications and so forth.Featuresdda_constantsetl_functionsClassesguardianBasicTokenGuardianDEPLOYmakenewupdate thesetup.pyUpdated InstructionsRight so what you have to do, is having thespan_guidhere, you should be able to work on having them. On theUPDATEeventSETend_time=CASEWHENend_time<'2023-06-16 10:00:00'THEN'2023-06-16 10:00:00'ELSEend_timeENDWHEREspan_guid='your_span_guid'UPDATEeventSETend_time=CASEWHENend_time<'2023-06-16 10:00:00'THEN'2023-06-16 0:00:00'ELSEend_timeENDWHEREspan_guid='your_span_guid'UPDATEeventSETend_time=CASEWHENend_time<'2023-06-17 10:00:00'THEN'2023-06-17 10:00:00'ELSEend_timeENDWHEREspan_guid='aaad64e8-672f-3fa3-a94f-53c3cfe3d789'UPDATEeventSETend_time='2023-06-15 10:00:00'WHEREspan_guid='0c4b4c8b-d00a-88ed-0f1e-24e045becaeb'UPDATEeventSETend_time=CASEWHENend_time<'2023-06-17 10:00:00'THEN'2023-06-17 10:00:00'ELSEend_timeENDWHEREspan_guid='0c4b4c8b-d00a-88ed-0f1e-24e045becaeb'UPDATEeventSETend_time=CASEWHENend_time<'2023-06-17 10:00:00'THEN'2023-06-17 10:00:00'ELSEend_timeENDWHEREspan_guid='aaad64e8-672f-3fa3-a94f-53c3cfe3d789'
Package: ddash
DDashPurposesdockeranddocker-composecli tool, to specify and automatic apply with current work directory.InstallationpipinstallddashInstructionThis program is usingstdoutandstderrwhich means it's able to support the next level deployment scripting.Setup following variable in you enviroment to make it permanently:DDASH_TIMEOUT: Execute cli timeout [default is None(never timeout)]DDASH_PROJECT_DELIMITER: Project delimiter for extracting prefix [default:_(underscore)]DDASH_PROJECT_SPLIT_LIMIT: Project prefix word number for extracting prefix [default: 1]DDASH_ROOT_PATH: Workspace [default: $HOME]DDASH_SUB_PATH: Group directory combine withROOT_PATH,{PREFIX}will be replace with porject prefixDDASH_SATELLITE_SUFFIX: Satellite container name [default: service]DDASH_COMPOSE_FILENAME: docker-compose filename [default: docker-compose.yml]DDASH_DOCKER_EXEC_COMMAND: docker exec command [default: bash]Commandps: List running containers, format table and grep rowslaunch: Launch satellite container through project {PREFIX} which is extract from$PWDor --project, combine {SUFFIX} to up a satellite container [default:{PREFIX}_service]terminate: Terminate satellite container through project {PREFIX} which is extract from$PWDor --project, combine {SUFFIX} to up a satellite container [default:{PREFIX}_service]up: up container through project {PREFIX} which is extract from$PWDor --project, combine {SUFFIX} to up a satellite container [default:{PREFIX}_service]down: down container through project {PREFIX} which is extract from$PWDor --project, combine {SUFFIX} to up a satellite container [default:{PREFIX}_service]run: exec container with interactive tty mode through project {PREFIX} which is extract from$PWDor --project, combine {SUFFIX} to up a satellite container [default:{PREFIX}_service]Update Logs#dateversion42022/04/14v0.3.032022/02/02v0.2.022022/01/31v0.1.012022/01/20v0.0.00.3.0Merge pull request fromMichaelto fix color display issue.0.2.0Removed useless paramDDASH_TIMEOUT.Fixed_parse_sub_pathget unexpected valueNonedue to_SUB_PATHhas no default value.0.1.0Adjust execute method, usesubprocess.Popen(cmd, shell=True).wait()instead ofsubprocess.check_output()to avoid no reactions during a long term processing.0.0.0Add the following commands:pslaunchterminateupdownrunIf you like my work, please consider buying me a coffee orPayPalThanks for your support! Cheers! 🎉
Package: ddate
DDateDiscordian Date Python Object Class.GitHub pagePython Usage Examples>>>fromddate.baseimportDDate>>>>>>DDate()<src.ddate.DDateobjectat0x7f3a6b88eb50><DDatedate:2014-02-01,day_of_season:32,day_of_week:1,holiday:None,season:0,year:3180>>>>>>>print(DDate())TodayisBoomtime,the32nddayofChaosintheYOLD3180>>>>>>importdatetime>>>print(DDate(datetime.date(year=2014,month=4,day=20)))SettingOrange,the37thdayofDiscordintheYOLD3180Command Line Examples$ddateTodayisPungenday,the40thdayofDiscordintheYOLD3181$ddate--helpusage:ddate[day][month][year]$dcalDiscord3181SwBoPuPrSe717273123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172731234$dcal--helpSimilartothe`cal`command,butfortheDiscordiancalendar.Usage:dcal[season][year]Seasoncanbeanintegerbetween1and5,stepswith+or-,'next',oranyoftheDiscordianseasonnames.TheyearisinDiscordian(+=1166toGregorian).Examples:dcal+2# prints two seasons into the futuredcalaft# prints the last season (The Aftermath) of this yeardcaldiscord-2# prints the Discord season from two years agodcal+6+1# prints the calendar 6 seasons and one year in the futureDiscordianseasonnames:ChaosDiscordConfusionBureaucracyTheAftermathInstallSimple way:$pipinstall-UddateOr from source:$gitclonehttps://github.com/a-tal/ddate$cdddate$pythonsetup.pyinstallLive Demolive demo gif
Package: dday
ddayShowing how many days are remaining till project d-day.Useful tool to set up in your shell.view at:https://pypi.org/project/dday/INATALLpipinstallddayUSE$dday
프로젝트마감일까지41일남았습니다.DEV$gitclone...
$cddday
$pdmvenvcreate
$source.venv/bin/activate(dday-3.8)$pdminstallTEST$pdmadd-dGtestpytestpytest-cov
$source.venv/bin/activate(dday-3.8)$pdminstall
$pytest
$pytest-s
$pytest--covDEPLOY$pdmpublish
Package: ddb
ddb (delimited database)A serviceless sql interface for flat files written in pythonWhat does it do?ddb sits on top of text files, giving them a database access layeryou can read, write, update text files of any type via sqlHuman benifitsa common interface for text filessql is easy to work with, no coding requiredpainless side by side integrationmultiple integration vectors (python, shell, slack, ansible)ease of automationTechnical benifitsabstraction layer for dataprovides migration path for datachange controlloggingpermissionslow memory foot printerror handelingdata is live, never cachedoptimized for speed using cythonPython 2 / 3 Compliantchanges sortingtons of byte vs str (encoding)
Package: ddb3cython
ddb (delimited database)A serviceless sql interface for flat files written in pythonWhat does it do?ddb sits on top of text files, giving them a database access layeryou can read, write, update text files of any type via sqlHuman benifitsa common interface for text filessql is easy to work with, no coding requiredpainless side by side integrationmultiple integration vectors (python, shell, slack, ansible)ease of automationTechnical benifitsabstraction layer for dataprovides migration path for datachange controlloggingpermissionslow memory foot printerror handelingdata is live, never cachedoptimized for speed using cythonPython 2 / 3 Compliantchanges sortingtons of byte vs str (encoding)
Package: ddbapi
Wrapper for the DDB APIQuery the DDB API for Newspapersreturns a Pandas Dataframe ObjectUsage:from ddbapi import zp_issues, zp_pages, list_column, filter

df = zp_issues(publication_date='[1600-09-01T12:00:00Z TO 1699-12-31T12:00:00Z]')
print(df)zp_issuesReturns a DataFrame containing Data on Newspaper-Issues.Use any combination of these keyword arguments:language: Use ISO Codes, currentlyger,eng,fre,spa,itaplace_of_distribution: Search inside "Verbreitungsort", use a list for multiple search-wordspublication_date: Get newspapers by publication date. Use the following format:1900-12-31T12:00:00Zfor a specific date, use square brackets andTObetween two dates to get a daterange like so:publication_date='[1935-09-01T12:00:00Z TO 1935-09-22T12:00:00Z]'- time is always12:00:00Z.zdb_id: Search by ZDB-IDprovider: Search by Data Providerpaper_title: Search inside the title of the Newspaperzp_pagesReturns a DataFrame containing Data on Newspaper-Pages.Use any combination of these keyword arguments:plainpagefulltext: Search inside the OCR Fulltext (Use a list for multiple search-words)language: Use ISO Codes, currentlyger,eng,fre,spa,itaplace_of_distribution: Search inside "Verbreitungsort", use a list for multiple search-wordspublication_date: Get newspapers by publication date. Use the following format:1900-12-31T12:00:00Zfor a specific date, use square brackets andTObetween two dates to get a daterange like so:publication_date='[1935-09-01T12:00:00Z TO 1935-09-22T12:00:00Z]'- time is always12:00:00Z.zdb_id: Search by ZDB-IDprovider: Search by Data Providerpaper_title: Search inside the title of the NewspaperValues of keyword arguments may contain lists to combine queries.Uselist_columnandfilterto perform usual Pandas Operations on list-containing Columns (eg.list_column(df['place_of_distribution']).value_counts()orfilter('Altona', 'place_of_distribution', df))
Package: ddbc
ddbcDescriptionAmazon DynamoDB as a cache store.RequirementsPython2.7pipInstallationPyPIpipinstallddbcSetupCreate IAM Role or UserPolicy example:{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["dynamodb:CreateTable","dynamodb:DeleteItem","dynamodb:GetItem","dynamodb:PutItem"],"Resource":"arn:aws:dynamodb:<region>:<account-id>:table/<cache-table>"}]}Create the DynamoDB table for cacheScript Example:#!/usr/bin/env pythonimportddbc.utilsddbc.utils.create_table(table_name='cache_table',region='us-east-1',# optionalread_units=10,# default: 5write_units=10# default: 5)Usageimportddbc.cacheimporttimecache=ddbc.cache.Client(table_name='cache_table',region='us-east-1',# optionaldefault_ttl=100,# default: -1 (Infinity)report_error=True# default: False)cache['foo']='bar'print(cache['foo'])# => 'bar'time.sleep(100)print(cache['foo'])# => Nonecache.set('foo','bar',1000)time.sleep(100)print(cache['foo'])# => 'bar'delcache['foo']print(cache.get('foo','buz'))# => 'buz'DevelopmentSource hosted atGitHubReport issues/questions/feature requests onGitHub
IssuesPull requests are very welcome! Make sure your patches are well tested.
Ideally create a topic branch for every separate change you make. For
example:Fork the repoCreate your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Added some feature')Push to the branch (git push originmy-new-feature)Create new Pull RequestAuthorsCreated and maintained byMasashi
Terui(marcy9114@gmail.com)LicenseMIT License (seeLICENSE)
Package: ddb-cache
ddb-cacheA simple interface for caching items in DynamoDBExample UsageSamples can be found here in thetestsThe library can also be used for crud operations since it implementget,put,update,delete,scanandquery. Along withcreate_backup.Basic usage is as given below:deftest_put_cache(ddb_cache:DDBCache):data=randint(1,100)# noqa: S311ddb_cache.put_cache({"id":"test_put_cache","data":data})item=ddb_cache.get_item({"id":"test_put_cache"})assertitemassertitem["id"]=="test_put_cache"assertitem["data"]==dataassertitem["ttl"]deftest_put_cache_no_ttl(ddb_cache:DDBCache):data=randint(1,100)# noqa: S311ddb_cache.put_cache({"id":"test_put_cache","data":data},with_ttl=False)item=ddb_cache.get_item({"id":"test_put_cache"})assertitemassertitem["id"]=="test_put_cache"assertitem["data"]==datawithpytest.raises(KeyError):item["ttl"]deftest_fetch_cache(ddb_cache:DDBCache,init_cache):item=ddb_cache.get_item({"id":"test_fetch_cache"})assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"ttl=item["ttl"]assertttlsleep(1)item=ddb_cache.fetch_cache({"id":"test_fetch_cache"})assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"withpytest.raises(KeyError):item["ttl"]item=ddb_cache.get_item({"id":"test_fetch_cache"})assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"ttl2=item["ttl"]assertttl2assertttl!=ttl2deftest_fetch_cache_no_ttl_update(ddb_cache:DDBCache,init_cache):item=ddb_cache.get_item({"id":"test_fetch_cache"})assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"ttl=item["ttl"]assertttlitem=ddb_cache.fetch_cache({"id":"test_fetch_cache"},with_ttl=False)assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"withpytest.raises(KeyError):item["ttl"]item=ddb_cache.get_item({"id":"test_fetch_cache"})assertitemassertitem["id"]=="test_fetch_cache"assertitem["data"]=="test_fetch_cache"ttl2=item["ttl"]assertttl2assertttl==ttl2
Package: ddbcereal
ddbcerealA high performance Python library for serializing and deserializing DynamoDB
attribute values.Serializers and deserializers created with ddbcereal work with the input and
output of AWS SDKs like botocore, aiobotocore, and the low-level client
interfaces of boto3 and aioboto3.This library endeavors to be at least as fast as boto3's (de)serializer and has
the option to work with inexact numbers like floats.DocumentationUsageCreate aSerializerfor getting data into the native DynamoDB format:serializer.serialize(value)to serialize individual valuesserializer.serialize_item(mapping)to serialize an entire dict of values.CreateDeserializerfor getting native DynamoDB data into native Python values:deserializer.deserialize(value)to deserialize individual valuesdeserializer.deserialize_item(mapping)for complete items from the AWS SDKExampleimportaiobotocoreimportddbcerealserializer=ddbcereal.Serializer()deserializer=ddbcereal.Deserializer()aws=aiobotocore.Session()asyncwithaws.create_client('dynamodb')asddb:# Serialize entire dict as a DynamoDB itemawaitddb.put_item(TableName='MyItems',Item=serializer.serialize_item(my_dict))# Serialize single valuesawaitddb.update_item(TableName='Customers',Key={'id':serializer.serialize(customer_id)},UpdateExpression='SET displayName = :name, licenses = :licenses',ExpressionAttributeValues={':name':serializer.serialize('ACME, Inc.'),':licenses':serializer.serialize(20)})# Deserializing:response=awaitddb.query(TableName='Companies',KeyConditionExpression='id = :id',ExpressionAttributeValues={':id':serializer.serialize(customer_id)})companies=[deserializer.deserialize_item(item)foriteminresponse.get('Items',())]