Saravanan666/pypi-org huggingface dataset:
Package: dapclient
dapclient - Quick Guidedapclient is a client-only fork of the venerable pydap. It implements the
Opendap/DODS protocol.  You can use dapclient to access scientific data on the
internet without having to download it; instead, you work with special array
and iterable objects that download data on-the-fly as necessary, saving
bandwidth and time.Why fork pydap?Simplify the codebase by remove the server side codeUpdate the code to use modern python 3.8+Up-to-date pypi and conda packagesThis version has no additional features, and it only has a few tests.  My
immediate goal is to have pip and conda packages to support my tsgettoolbox
package.  I will add tests and features as time (and pull requests!) allow.QuickstartYou can install the latest version using
[pip](http://pypi.python.org/pypi/pip) or conda.$ pip install dapclientAlso maintained on the conda-forge channel [conda channel](https://anaconda.org/conda-forge/dapclient):$ conda install -c conda-forge dapclientThis will install dapclient together with all the required
dependencies. You can now open any remotely served dataset, and dapclient
will download the accessed data on-the-fly as needed:>>> from dapclient.client import open_url
>>> dataset = open_url('http://test.opendap.org/dap/data/nc/coads_climatology.nc')
>>> var = dataset['SST']
>>> var.shape
(12, 90, 180)
>>> var.dtype
dtype('>f4')
>>> data = var[0,10:14,10:14]  # this will download data from the server
>>> data
<GridType with array 'SST' and maps 'TIME', 'COADSY', 'COADSX'>
>>> print(data.data)
[array([[[ -1.26285708e+00,  -9.99999979e+33,  -9.99999979e+33, -9.99999979e+33],
        [ -7.69166648e-01,  -7.79999971e-01,  -6.75454497e-01, -5.95714271e-01],
        [  1.28333330e-01,  -5.00000156e-02,  -6.36363626e-02, -1.41666666e-01],
        [  6.38000011e-01,   8.95384610e-01,   7.21666634e-01, 8.10000002e-01]]], dtype=float32),
           array([ 366.]),
           array([-69., -67., -65., -63.]),
           array([ 41.,  43.,  45.,  47.])]For more information, please check the documentation on [using dapclient
as a client](https://timcera.bitbucket.io/dapclient/client.html).
Package: dapi
DesignSafe API (dapi)dapiis a library that simplifies the process of submitting, running, and monitoringTAPIS v2 / AgavePyjobs onDesignSafeviaJupyter Notebooks.FeaturesJobsSimplified TAPIS v2 Calls: No need to fiddle with complex API requests.dapiabstracts away the complexities.Seamless Integration with DesignSafe Jupyter Notebooks: Launch DesignSafe applications directly from the Jupyter environment.DatabaseConnects to SQL databases on DesignSafe:Databasedbnameenv_prefixNGLnglNGL_Earthake RecoveryeqEQ_VpvpVP_Define the following environment variables:{env_prefix}DB_USER
{env_prefix}DB_PASSWORD
{env_prefix}DB_HOST
{env_prefix}DB_PORTFor e.g., to add the environment variableNGL_DB_USERedit~/.bashrc,~/.zshrc, or a similar shell-specific configuration file for the current user and addexport NGL_DB_USER="dspublic".InstallationInstalldapivia pippip3installdapiTo install the current development version of the library use:pipinstallgit+https://github.com/DesignSafe-CI/dapi.git--quietExample usage:JobsJupyter Notebook Templatesusing dapi.Viewdapi API docOnDesignSafe Jupyter:Install the latest version ofdapiand restart the kernel (Kernel >> Restart Kernel):# Remove any previous installations!pipuninstalldapi-y# Install!pipinstalldapi--quietImportdapilibraryimportdapiTo list all functions indapidir(dapi)Databaseimportdapidb=dapi.DSDatabase("ngl")sql='SELECT * FROM SITE'df=db.read_sql(sql)print(df)# Optionally, close the database connection when donedb.close()DocumentationViewdapi API docTo generate API docs:pdoc --html --output-dir docs dapi --forceSupportFor any questions, issues, or feedback submit anissueDevelopmentTo develop or test the library locally. InstallPoetry. In the current repository run the following commandspoetryshell
poetryinstall
poetrybuildTo run the unit testpoetryrunpytest-vLicensedapiis licensed under theMIT License.AuthorsKrishna Kumar, University of Texas at AustinProf. Pedro Arduino, University of WashingtonProf. Scott Brandenberg, University of California Los Angeles
Package: dapiclient
A very basic DAPI client. Only supports retrieving from some JSON-RPC and gRPC
endpoints. No validation of anything. No submitting of data, tx creation,
signing, etc.Requirementspython3
python3-venvQuickstartgit clone https://github.com/mayoreee/dapi-client-py.git
cd dapi-client-py
python3 -m venv dapiclient-venv
source dapiclient-venv/bin/activate
pip install -r requirements.txt
python install .

# Check masternode list
python dapiclient/test-mndiscovery.py

# Check DAPI client functionality
python dapiclient/test-dapiclient.pyExamplesLayer 1fromdapiclient.clientimportDAPIClientclient=DAPIClient()current_block_hash=client.getBestBlockHash()print(current_block_hash)height=0genesis_block_hash=client.getBlockHash(height)print(genesis_block_hash)Layer 2fromdapiclient.clientimportDAPIClientimportcbor2client=DAPIClient()id=client.getIdentity('C7id2mah2RkiroiTy6h134hLgS6A47jhh5x91tvw16bz')print(id)# Retrieve DPNS contractcontract=client.getDataContract('ARQGUnPH3YMK8FZuqwUjnTWEF6Zu4Cf3sT6e1Ruu1RXk')print(contract)# Retrieve 5 domain names from DPNSdocs=client.getDocuments('ARQGUnPH3YMK8FZuqwUjnTWEF6Zu4Cf3sT6e1Ruu1RXk','note',limit=1)print('{}documents retrieved'.format(len(docs)))fordocindocs:print('Document:\n\t{}\n'.format(cbor2.loads(doc)))
Package: dapla-team-cli
Dapla Team CLIA CLI for working with Dapla teams.Forinstallation options see below, for usage instructionssee the manualor type--helpon the command line.InstallationInstall withpipx:pipx install dapla-team-cli(Be patient, installation can take some time.)FeaturesAssign bucket access and GCP roles to members for a limited amount of timeGet an overview of a team's groups and membersMake instant changes to your team's access groups, e.g. add a new team member to your team's "developers" group.Register team secrets (in a team's GCP Secret Manager service)Diagnose your system and get help to install required tooling for easy setup of your development environmentLinksPyPIUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Dapla Team CLIis free and open source software.IssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: dapla-toolbelt
Dapla ToolbeltPython module for use within Jupyterlab notebooks, specifically aimed for Statistics Norway's data platform calledDapla. It contains support for authenticated access to Google Services such as Google Cloud Storage (GCS) and custom
Dapla services such asMaskinporten Guardian. The
authentication process is based on theTokenExchangeAuthenticatorfor Jupyterhub.FeaturesThese operations are supported:List contents of a bucketOpen a file in GCSCopy a file from GCS into localLoad a file (CSV, JSON or XML) from GCS into a pandas dataframeSave contents of a data frame into a file (CSV, JSON, XML) in GCSWhen the user gives the path to a resource, they do not need to give the GCS uri, only the path.
This just means users don't have to prefix a path with "gs://".
It is implicitly understood that all resources accessed with this tool are located in GCS,
with the first level of the path being a GCS bucket name.RequirementsPython >3.8 (3.10 is preferred)Poetry, install viacurl -sSL https://install.python-poetry.org | python3 -InstallationYou can installDapla ToolbeltviapipfromPyPI:pip install dapla-toolbeltUsagefromdaplaimportFileClientfromdaplaimportGuardianClientimportpandasaspd# Load data using the Maskinporten Guardian clientresponse=GuardianClient.call_api("https://data.udir.no/api/kag","88ace991-7871-4ccc-aaec-8fb6d78ed04e","udir:datatilssb")data_json=response.json()raw_data_df=pd.DataFrame(data_json)# create pandas data frame from jsonraw_data_df.head()# show first rows of data frameFileClient.ls("bucket-name/folder")# list contents of given folder# Save data into different formatspath_base="bucket-name/folder/raw_data"FileClient.save_pandas_to_json(raw_data_df,f"{path_base}.json")# generate json from data frame, and save to given pathFileClient.save_pandas_to_csv(raw_data_df,f"{path_base}.csv")# generate csv from data frame, and save to given pathFileClient.save_pandas_to_xml(raw_data_df,f"{path_base}.xml")# generate xml from data frame, and save to given pathFileClient.cat(f"{path_base}.json")# print contents of file# Load data from different formats# All these data frames should contain the same data:df=FileClient.load_json_to_pandas(f"{path_base}.json")# read json from path and load into pandas data framedf.head()# show first rows of data framedf=FileClient.load_csv_to_pandas(f"{path_base}.csv")# read csv from path and load into pandas data framedf.head()# show first rows of data framedf=FileClient.load_xml_to_pandas(f"{path_base}.xml")# read xml from path and load into pandas data framedf.head()# show first rows of data frameContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Dapla Toolbeltis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated fromStatistics Norway'sSSB PyPI Template.
Package: daploader
Python module that loads a dap file, check it for sanity/validity
and provide access for metadata via a Python class.You can also rundaplinton your daps to see some errors or warnings.Also provides very basic command line tool to install daps fromDapi(dapi).dapDap is a format of extension for DevAssistant that contains custom assistants.
The whole thing is now in development phase and the specification may change
in the future. This module should define the standard.http://devassistant.orgStructure<package_name>-<version>/assistants/{crt,mod,prep,task}/<package_name>.yaml and optionally <package_name>/*.yamlfiles/{crt,mod,prep,task,snippets}/<package_name>/additional files needed by your assistant(s) (scripts, templates, etc.)icons/{crt,mod,prep,task,snippets}/<package_name>.{svg,png…}snippets/<package_name>.yaml and optionally <package_name>/*.yamldoc/<package_name>/LICENSE or COPYING fileREADMEother documentationmeta.yamlmetadataBasically only meta.yaml is mandatory, but a dap with meta.yaml only makes no sense. All content is wrapped in tar.gz archive and renamed to <package_name>-<version>.dap. Both .yaml and icons file extension (currently only .svg and .png) must be lower case. The archive should contain one top level directory named <package_name>-<version>.meta.yamlpackage_name: foo # required
version: 1.0.0 # required
license: GPLv2 # required
authors: [Bohuslav Kabrda <bkabrda@mailserver.com>, ...] # required
homepage: https://github.com/bkabrda/assistant-foo # optional
summary: Some brief one line text # required
bugreports: <a single URL or email address> # optional
description: |
    Some not-so-brief optional text.
    It can be split to multiple lines.package namecan contain lowercase letters (ASCII only), numbers, underscore and dash (while it can only start and end with a letter or digit), it has to be unique, several names are reserved by DevAssitant itself (e.g. python, ruby)versionfollows this scheme: <num>[.<num>]*[dev|a|b], where 1.0.5 < 1.1dev < 1.1a < 1.1b < 1.1licenseis specified via license tag used in Fedorahttps://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licensesauthorsis a list of authors with their e-mail addresses (_at_ can be used instead of @)homepageis an URL to existing webpage that describes the dap or contains the code (such as in example), only http(s) or ftp is allowed, no IP addressessummaryanddescriptionare self-descriptive in the given examplebugreportsdefines where the user should report bugs, it can be either an URL (issue tracker) or an e-mail address (mailing list or personal)
Package: dapl-secure-bucket
DAPL Secure Bucket ConstrucsThis Secure Bucket construcs extends the S3 Bucket construct. When using this construct, you will create a S3 bucket with default security best practises enabled. These are:Block public accessEnabled versioningEnable enforce SSL to connect to bucketEnabled Bucket access loggingEncryption of the bucket with a customer managed KMS key with enabled key rotation and trusted account identities and admins.Lifecycle management on objects, move items to Infrequently Access after one monthThese best practises are enforced. When creating a SecureBucket with for example versioning disabled, it will be overwritten to enabled.Usageinstall packagenpminstall@dapl_secure_bucketImport the secure bucket construct in your code.//Importnecessarypackagesimport{Stack,StackProps}from'aws-cdk-lib';import{Construct}from'constructs';import{SecureBucket}from'dapl-secure-bucket';exportclassSecureBucketStackextendsStack{constructor(scope:Construct,id:string,props?:StackProps){super(scope,id,props);newSecureBucket(this,'myEnterpriseLevelSecureBucket',{});}}
Package: dapodik
dapodikSDK python untuk aplikasi dapodik.InstallPastikanpython 3.7+terinstall,
kemudian jalankan perintah di bawah dalam Command Prompt atau Powershell (di Windows + X):pipinstall--upgradedapodikPenggunaanContoh pennggunaanfromdapodikimportDapodikemail='email@saya.com'password='password dapodik'd=Dapodik(email,password)sekolah=d.sekolah()daftar_peserta_didik=d.peserta_didik(sekolah_id=sekolah.sekolah_id)forpeserta_didikindaftar_peserta_didik:print(peserta_didik.nama)Legal / HukumKode ini sama sekali tidak berafiliasi dengan, diizinkan, dipelihara, disponsori atau didukung olehKemdikbudatau afiliasi atau anak organisasinya. Ini adalah perangkat lunak yang independen dan tidak resmi.Gunakan dengan risiko Anda sendiri.
Package: dapodik-webservice
dapodik-webserviceSDK Python Web Service aplikasi DapodikJangan lupa untukdonasiPenggunaanAplikasi CLIDownloaddapodik-exportdarihalaman rilisfiledapodik-export.zip.Matikan antivirus atau buat pengecualian folder yang sudah diekstrak.Exstrakdapodik-export.zip(klik kanan Extract Here)dan masuk folder dapodik-export.Buka / opencmd / windows powershelldi folder tersebut dengan tahan shift + klik kanan di dalam folder(jangan klik kanan file apapun).Contoh penggunaan Aplikasi CLIBerikut contoh perintah yang bisa dijalankan melaluicmd / windows powershellRubahtoken sayamenjadi token webservice dari aplikasi DAPODIK bagian pengaturan!Mengeksport semua data ke dalam file bernamaSekolahkudapodik-export.exe export semua --token "token saya" --npsn "0123456789" "Sekolahku"Mengeksport data peserta didik ke dalam file bernamaPeserta didikdapodik-export.exe export peserta-didik --token "token saya" --npsn "0123456789" "Peserta didik"Dengan PythonUntuk menggunakan modul ini silahkan buat token Web Service Dapodik terlebih dahulu di pengaturan Dapodik.fromdapodik_webserviceimportDapodikWebservicetoken='token webservice'npsn='12345678'dw=DapodikWebservice(token,npsn)sekolah=dw.sekolahprint(sekolah.nama)Install Dari PIPKhusus untuk pengembang python! Pastikan python 3.6 terinstall, kemudian jalankan perintah di bawah dalam Command Prompt atau Powershell (di Windows + X / klik kanan icon Windows):pipinstall--upgradedapodik-webserviceDonasiJika anda ingin melakukan donasi untuk kami, bisa menghubungi kami melaluiWhatsAppataupunTelegram.Legal / HukumKode ini sama sekali tidak berafiliasi dengan, diizinkan, dipelihara, disponsori atau didukung oleh Kemdikbud atau afiliasi atau anak organisasinya. Ini adalah perangkat lunak yang independen dan tidak resmi. Gunakan dengan risiko Anda sendiri.
Package: dapodix
dapodixAlat bantu aplikasi dapodik.InstallPastikan minimalpython versi 3.7terinstall,
kemudian jalankan perintah di bawah dalam Command Prompt atau Powershell (di Windows + X):pipinstall--upgradedapodixFitur yang akan datangDownload data ke ExcelPetunjuk validasiBulk update dari ExcelLegal / HukumKode ini sama sekali tidak berafiliasi dengan, diizinkan, dipelihara, disponsori atau didukung olehKemdikbudatau afiliasi atau anak organisasinya. Ini adalah perangkat lunak yang independen dan tidak resmi.Gunakan dengan risiko Anda sendiri.
Package: dapp
Library implementing protocol used for communication between DevAssistant and PingPong
scripts (a.k.a. executable assistants). The protocol specification can be found at TODO:link.Note that this library implements both “server” and “client” side. The “server” side
is only used by DevAssistant itself. If you’re considering implementing a DevAssistant
PingPong library for another language, you just need to implement the “client” side.UsageTo write a simple PingPong script, you need to create a minimal Yaml assistant,
that specifies metadata, dependencies needed to run the PingPong script (which
is a Python 3 script in this case):fullname: PingPong script example
description: A simple PingPong script using DevAssistant PingPong protocol

dependencies:
# TODO: once dapp library is on PyPI/packaged in Fedora, it should also be added to list of deps
- rpm: [python3]

args:
  name:
    flags: [-n, --name]
    help: Please provide your name.

files:
  script: &script
    source: script.py

run:
- pingpong: python3 *scriptLet’s assume that the above assistant is~/.devassistant/assistants/crt/test.yaml. The
corresponding PingPong script has to be~/.devassistant/files/crt/test/script.pyand can look like this:#!/usr/bin/python3
import dapp

class MyScript(dapp.DAPPClient):
    def run(self, ctxt):
        if 'name' in ctxt:
            name = ctxt['name'].capitalize()
        else:
            name = 'Stranger'
        self.call_command(ctxt, 'log_i', 'Hello {n}!'.format(n=name))
        return (True, 'I greeted him!')

if __name__ == '__main__':
    MyScript().pingpong()Things to NoteThe PingPong script class has to subclassdapp.DAPPClient.Therunmethod has to accept two arguments,self(Python specific argument pointing to
the object) andctxt. Thectxtis a dict (Python mapping type) that holds the global
context   of the Yaml DSL (e.g. it contains thenameargument, if it was specified by user
on command line/in GUI).You can utilize DevAssistant commands [1] by callingcall_commandmethod. This takes three
arguments - global context,command typeandcommand input. The first is (possibly modified)
context that was passed to therunmethod and the other two are the same as explained at [1].Thectxtdict can possibly get modified by running the command, check documentation of every
specific command to see what it does and whether it modifies anything in the global context.Thecall_commandmethod returns a 2-tuple -logical resultandresultof the command.
Again, these are documented for all commands at [1].Therunmethod has to return a 2-tuple - alogical result(e.g.True/False) and aresult, just as any other command would.If you want the assistant to modify the global context, just modify thectxtvariable.
All commands that you possibly run afterpingpongin the Yaml file will then see all
the modifications that you did.Note, that to actually start the PingPong script, you have to callpingpong()method
of the script class,nottherun()method.[1]http://docs.devassistant.org/en/latest/developer_documentation/command_reference.html
Package: dapperdata
DapperDataDapperData is an opinionated formatter for YAML and JSON files.It has two options- fix files in place, or just yell about files that fail.UsageInstallpipinstalldapperdataFix All Files in PlaceIf you want to fix all of the files in your current directory, recursively, run this command-dapperdatapretty.--no-dry-runTest Files without ChangingYou can use dapperdata to run a test in CI to confirm that all of the files already match the preferred styling.dapperdatapretty.This will return an list of all files to change, and will return a status code of 1 if any changes are needed. If no changes are needed the success status code (0) is returned.Configurationpyproject.toml[tool.dapperdata]exclude_paths=[".venv","tests",".git",".vscode"]Environment VariablesDAPPERDATA_EXCLUDE_PATHS='[".venv", "tests", ".git", ".vscode"]'Excluded FilesIf a.gitignorefile is present the directories in it will be excluded from scans.
Package: dappi
DappiScrape messages from discord server dumps and parse them into a csv file. More features to come later thoughUsageGet an html dump from the server you are trying to parse messages from using...Discord Chat ExporterInstall dappipip3 install dappiUse As CLIRun the CLI with command line argsdappi -i {path_to_discord_html_export} -o {path_to_csv_output_directory/file_name.csv} -s {boolean | "Sets a flag to show messages in the terminal while they are being parsed"}Note:file_name.csv, doesn't need to exist, but the"path_to_csv_output_directory"does!Use As LibraryUse dappi as a libraryfromdappiimportparserdappi_parser=parser.Parser('frostbite.html',# Html input'data/messages.csv',# Output DirectoryTrue# Show messages while writing)dappi_parser.parse_all_messages_into_single_file()exitTODOAutomated testsGenerate statistics and graphs of user activity from parsed messages?Frequency of user messages?Sentiment analysis of user messages?Other interesting metrics?Expose more functionality, I.E Write better docs
Package: dapplooker
DappLooker Python SDKDiscover blockchain insights effortlessly with the DappLooker Python SDK. Access reliable Web3 data and popular Dapp charts via the DappLooker Analytics platform. Enhance your Python projects with seamless integration.IntroductionDappLooker Python SDK provides developers with programmatic access to comprehensive blockchain data in the Web3 environment. With this SDK, you can easily retrieve popular charts data for your decentralized applications (Dapps). The DappLooker Analytics platform offers a no-code, community-driven analytics and visualization platform for blockchain networks and Dapps.FeaturesAccess reliable and comprehensive blockchain data effortlessly.Retrieve popular charts data for your Dapps with ease.Integrate seamlessly with your Python projects.InstallationYou can install the DappLooker Python SDK usingpip:pipinstalldapplookerGetting StartedTo get started with the DappLooker Python SDK, follow these steps:Generate an API key:Create an account on theDappLooker website.After signing up, navigate to theAPI keyspage.Click on+ API Keyand provide a name for your API key.Click onGenerate Keyand copy your API key for future use.Import the SDK:Import the DappLooker SDK in your Python project:fromdapplookerimportDappLookerChartsAPIAccess Blockchain Data:With the SDK imported, create an instance of theDappLookerChartsAPIclass and make API calls using your API key.# Replace 'your_api_key' with the API key you obtainedapi_key='your_api_key'# Replace 'your_chart_uuid' with the UUID of the chart you want to retrieve data forchart_uuid='your_chart_uuid'# Make an API call to get chart dataresponse=DappLookerChartsAPI.get_chart_data(chart_uuid,api_key)# Process the response data as per your requirementsprint(response)ResourcesDappLooker Website- To discover our product and analytics platform.DappLooker SDK Repository- To explore the inspiration for this Python SDK.DappLooker Documentation- For comprehensive documentation on the SDK and analytics platform.ContributingWe welcome contributions from the community to improve the DappLooker Python SDK. If you find any issues, have suggestions for new features, or want to help with bug fixes, feel free to submit a pull request or create an issue on theGitHub repository.
Package: dap.plugins.sql
This plugin should work with any database module that conforms with the
Python DB-API 2 specification:http://www.python.org/peps/pep-0249.htmlYou can find a list of database modules here:http://www.python.org/topics/database/modules.htmlIt currently has been tested with SQLite, MySQL and PostgreSQL, but it
also should work with Oracle, MSSQL and ODBC.The latest version is available in aSubversion repository.