Saravanan666/pypi-org huggingface dataset:
Package: drb-driver-grib
GRIB driverThis drb-driver-grib module implements grib format access with DRB data model. It is able to navigates among the grib contents.GRIB Factory and GRIB NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The driver name isgrib.The factory classDrbGribFactoryis encoded intodrb.drivers.factorymodule.The GRIB data model containing a set of Attributes, Dimensions; Coordinates and Variables. It also includes User-defined set of types.
The Drb structure implemented here, reproduces this representation.
Attributes are reported in node as node attributes whereas Coordinates, Dimensions and Values are reported as node children. The raw content is available in Variable node requesting array (xarray, or numpy ndarray types)limitationsThe current version does not manage child modification and insertion.DrbGribNodeis currently read only.
The factory to build DrbGribNode supports file directly opening it with path, for other implementation ByteIO or BufferedIOBase, they are manged with a local temporary file, removed when the node is closed..Using this moduleTo include this module into your project, thedrb-driver-gribmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-driver-gribThis module depends on cfgribSee installation of cfgrib, onhttps://pypi.org/project/cfgrib/If you install it by pip install you need to install the ECMWF ecCodes library.
Seehttps://confluence.ecmwf.int/display/ECC/ecCodes+installation.
Package: drb-driver-http
Http & Https ImplementationThis drb-driver-http module implements http and https protocol access with DRB data model.Http Factory and Http NodeThe module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The implementation name ishttp.The factory class is encoded intodrb.drivers.http.The http signature id isb065a5aa-35a3-11ec-8d3d-0242ac130003The https signature id isc18ef57c-3673-11ec-8d3d-0242ac130003The HttpNode can be instantiated from an uri. TheParsedPathclass provided in drb core module can help to manage these inputs.Using this moduleThe project is present inhttps://www.pypi.orgservice. it can be freely
loaded into projects with the following command line:pip install drb-driver-httpAccess DataDrbHttpNodemanages the http protocol to access remote data. The construction
parameter is an url. Both http and https are supported. They allow access the
http content en header. The content is accessible withvaluenode class
attribute. It shall also be possible to retrieve specific streamed
implementation usingget_implmethode.
The URL HTTP GET response header of the given URL is accessible viaattributesof the node.fromdrb.drivers.httpimportDrbHttpNodenode=DrbHttpNode('https://gitlab.com/drb-python/impl/http/-/raw/main/README.md')print(node.name)print(node.attributes)print(node.path)print(node.value)HTTP protocol does not allow navigation inside http path so this
implementation is not able to provide any children of the same HTTP type.AuthenticationHttp node is able to manage Basic authentication based on username and
password, as well as OAuth2.0 authentication based on token.
It should also support Digest authentication via requests packageHTTPDigestAuthimplementation.Basic AuthTo implements Basic authentication connection, theHTTPBasicAuthclass
from requests package is used.fromrequests.authimportHTTPBasicAuthfromdrb.drivers.httpimportDrbHttpNodeauth=HTTPBasicAuth('username','password')node=DrbHttpNode('https://www.gael.fr',auth=auth)OAuth2.0 connectionA dedicatedHTTPOAuth2class is available to manage OAuth2.0 authentication.
It allows token retrieval and refresh when expired.fromdrb.drivers.httpimportDrbHttpNode,HTTPOAuth2svc_url='https://www.gael-systems.com/service'token_svc='https://auth.gael-systems.com/token'user='user'password='pass'service_id='service'secret='secret'auth=HTTPOAuth2(username=user,password=password,token_url=token_svc,client_id=service_id,client_secret=secret)node=DrbHttpNode(svc_url,auth=auth)The renewal event of the token is triggered by computation. Based on the
token expiration delay, the implementation computes the period to create or
refresh a new token. Thanks to this mechanism, no unnecessary connection
is performed by the client for this stage.LimitationsNoneDocumentationThe documentation of this implementation can be found herehttps://drb-python.gitlab.io/impl/http
Package: drb-driver-image
ImageNode ImplementationThis drb-driver-image module implements images data formats to be accessed with DRB data model. It is able to navigates among the images contents and accessing the image data.Supported images formatsThe current implementation is based on RasterIO module. It has been tested with Tiff/GeoTIFF, Jp2k and png formats.There are no limitations to use other formats supported by rasterio, seehttps://gdal.org/drivers/raster/index.htmlfor details.Image Factory and Image NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.drivers.The implementation name isimage.The factory class is encoded intodrb-drivers-image.base_node.The image factory creates an ImageNode from an existing image data. It uses a base node to access the content data with the streamed base node implementation.The base node can be a FileNode (See drb-driver-file), HttpNode, ZipNode or any other node able to provide streamed (BufferedIOBase,RawIOBase,IO) xml content.limitationsThe current version does not manage child modification and insertion. ImageNode is currently read only.Using this moduleTo include this module into your project, thedrb-driver-imagemodule shall be referenced intorequirement.txtfile, or the following pip line can be run:pip install drb-driver-image
Package: drb-driver-java
JavaNode driverThe drb-driver-java python module aims to wrap Java version of DRB model. It is
able to navigates among java nodes content.Seedocumentationfor details.Library usageJava(JDK) must be present in the system and theJAVA_HOMEenvironment
variable must be set.InstallationInstalling this library with execute the following in a terminalpipinstalldrb-driver-javaConfigurationAutomaticThe classpath is initialized retrieving Java libraries using a specific entry
pointdrb.driver.javawhere:name: represent the Java library package extension (e.g. jar)value: represent the package where Java libraries are stockedThe following example will retrieve alljarfiles resources from the Python
packagemy.package.classpath:fromsetuptoolsimportsetupsetup(entry_points={'drb.driver.java':'jar = my.package.classpath'},# Other setuptools.setup parameters)ManualTo add custom Java libraries to the JVM classpath, please configureCLASSPATH_ADDONenvironment variable. It contains absolute path of
additional Java librariesexportCLASSPATH_ADDON=$CLASSPATH_ADDON:/path/to/my/custom/java/libJava Factory and Java NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The driver name isjava.The factory classDrbJavaFactoryis encoded intodrb.drivers.factoryThe java factory creates a JavaNode from an existing java content. It uses a base node to access the content data using a streamed implementation from the base node.The base node can be a DrbFileNode, DrbHttpNode, DrbTarNode or any other nodes able to provide streamed (BufferedIOBase,RawIOBase,IO) java content.limitationsThe current version does not manage child modification and insertion. JavaNode is currently read only.Using this moduleTo include this module into your project, thedrb-driver-javamodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-driver-javaSet eventually environment variableCLASSPATH_ADDONandJAVA_HOME
Package: drb-driver-json
JsonNode ImplementationThisdrb-driver-jsonmodule implements json format access with DRB data
model. It is able to navigates among the json contents.Json Factory and Json NodeThe module implements the basic factory model defined in DRB in its node
resolver. Based on the python entry point mechanism, this module can be
dynamically imported into applications.The entry point group reference isdrb.driver.The driver name isjson.The factory classJsonNodeFactoryis encoded intodrb.drivers.json.factory.The json factory creates a JsonNode from an existing json content. It uses a
base node to access the content data using the streamed base node
implementation.The base node can be a FileNode (See drb), HttpNode, ZipNode or
any other node able to provide streamed (BufferedIOBase,RawIOBase,IO)
json content.limitationsThe current version does not manage child modification and insertion. JsonNode
is currently read only.Using this moduleTo include this module into your project, thedrb-driver-jsonmodule shall be
referenced intorequirement.txtfile, or the following pip line can be run:pip install drb-driver-jsonNode Creation:The driver can create a JsonNode by giving the path to a json file:from drb.drivers.json import DrbJsonNode

node = JsonNode(PATH_JSON)the driver can also give a dictionary in argument:from drb.drivers.json import DrbJsonNode

DICT = { 
        "id":"01", 
        "name": "Tom", 
        "lastname": "Price" 
     }
node = JsonNode(NAME_OF_YOUR_NODE, data = DICT)If the baseNode is an HttpNode, FileNode... the driver can retrieve the data of
your Json with this:from drb.drivers.json import JsonNodeFactory

FACTORY = JsonNodeFactory()
FILE_NODE = DrbFileNode(PATH_TO_YOUR_JSON)
NODE = FACTORY.create(FILE_NODE)Different types of datadataJSON TypePython TypenullnullNonetrue/falsebooleanbool'hello World'stringstr1intint1.0numberfloat[...]arraylist{...}objectdictDocumentationThe documentation of this driver can be found herehttps://drb-python.gitlab.io/impl/json
Package: drb-driver-litto3d
Litto3dNode ImplementationThis drb-driver-litto3d module implements access to litto3d format (.asc and .xyz files) with DRB data model.
It is able to retrieve common implementations such as pandas, numpy or rasterio.litto3d Factory and litto3d NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The implementation name islitto3d.The factory class is encoded intodrb.drivers.litto3d.node.The litto3d has 2 formats:.asc which contains a header with spatial attributes and array attributes and an array of data.xyz which contains a list of coordinates and the z value with some metadata about the litto3DThe base node can be a DrbFileNode, DrbHttpNode, DrbZipNode or any other nodes able to provide streamed (BufferedIOBase,RawIOBase,IO) litto3d content.limitationsThe current version does not manage child modification and insertion. litto3dNode is currently read only.Using this moduleTo include this module into your project, thedrb-driver-litto3dmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-driver-litto3d
Package: drb-driver-netcdf
Netcdf driverThis drb-driver-netcdf module implements netcdf format access with DRB data model. It is able to navigates among the netcdf contents.Netcdf Factory and Netcdf NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The driver name isnetcdf.The factory classDrbNetcdfFactoryis encoded intodrb.drivers.factorymodule.The netCDF 4.0 data model is based on recursive structure of Groups each containing a set of Attributes, Dimensions and Variables. It also includes User-defined set of types.
The Drb structure implemented here, reproduces this representation.
Attributes are reported in node as node attributes whereas Dimensions and Values are reported as node children. The raw content is available in Variable node requesting array (xarray, or numpy ndarray types)limitationsThe current version does not manage child modification and insertion.DrbNetcdfNodeis currently read only.
The factory to build DrbNetcdfNode supports file directly opening it with path, for other implementation ByteIO or BufferedIOBase, they are manged with a local temporary file, removed when the node is closed..limitations HDF-EOS fileWhen open a HDF-EOS file in HDF4 format
If fails with message:[Errno -128] NetCDF: Attempt to use feature that was not turned on when netCDF was builtThis means that NetCDF system library linked with netCDF4 python wasn't compiled with HDF4 support.
You can try to install netCDF4 python by condaconda install -c conda-forge netcdf4Or rebuild netCDF4 locally with netCDF library with support hdf4 turned ONUsing this moduleTo include this module into your project, thedrb-driver-netcdfmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-driver-netcdf
Package: drb-drivers
driversDRB Driversdrb-driversis a Python plugin forDRB, to help the installations
of drb drivers.Installationpipinstalldrb-drivers[OPTIONAL]DriverHere the list of all the drivers downloadable with this project.namecategorypackagejavaNONEdrb-driver-javagribFORMATTINGdrb-driver-gribzarrFORMATTINGdrb-driver-zarryamlFORMATTINGdrb-driver-yamljsonFORMATTINGdrb-driver-jsonnetcdfFORMATTINGdrb-driver-netcdflitto3dFORMATTINGdrb-driver-litto3dimageFORMATTINGdrb-driver-imagecsvFORMATTINGdrb-driver-csvzipCONTAINERdrb-driver-ziptarCONTAINERdrb-driver-tarwxsPROTOCOLdrb-driver-wxswcsPROTOCOLdrb-driver-wcswmtsPROTOCOLdrb-driver-wmtswmsPROTOCOLdrb-driver-wmswebdavPROTOCOLdrb-driver-webdavodataPROTOCOLdrb-driver-odataswiftPROTOCOLdrb-driver-swifthttpPROTOCOLdrb-driver-httpeurostatPROTOCOLdrb-driver-eurostatera5PROTOCOLdrb-driver-era5discodataPROTOCOLdrb-driver-discodatas3PROTOCOLdrb-driver-s3ftpPROTOCOLdrb-driver-ftpYou can download a driver with his name like:pipinstalldrb-drivers[http]to only download the driver httpTo download all the formatting drivers:pipinstalldrb-drivers[formatting]To download all the drivers:pipinstalldrb-drivers[all]
Package: drb-driver-s3
Amazon simple storage service driverThis drb-driver-s3 module implements S3 protocol access with DRB data model.S3 Factory and S3 NodeThe module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.drivers.aws3.The driver name isaws3.The factory class is encoded intodrb.driver.aws3.The S3 signature id is4ab73f92-bbff-11ec-8422-0242ac120002.Using this moduleThe project is present inhttps://www.pypi.orgservice. it can be freely
loaded into projects with the following command line:pip install drb-driver-aws3Access DataDrbS3Nodemanages the s3 protocol to access remote data. The construction
parameter is an authentication object.fromdrb.drivers.aws3importDrbS3Service,Authfrombotocore.configimportConfigauth=Auth(service_name='s3',endpoint_url='http://your_s3_storage/',aws_access_key_id='user',aws_secret_access_key='password',config=Config(signature_version='s3v4'),region_name='us-east-1')node=DrbS3Service(auth)When accessing a DrbS3Service the node gives access to all the bucket of this service by giving a list of DrbS3Bucket,
and then each node gives a list of DrbS3Object for each object in the bucket.LimitationsThis driver doesn't allow to write, modify, delete file on a s3 bucket,
or it doesn't allow to delete or upload a file.
This driver doesn't allow to download directly a bucket.DocumentationThe documentation of this implementation can be found herehttps://drb-python.gitlab.io/impl/aws3
Package: drb-driver-swift
Swift ImplementationThis drb-driver-swift module implements Swift protocol access with DRB data model.Swift Factory and Swift NodeThe module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.swift.The implementation name isswift.The factory class is encoded intodrb.driver.swift.The Swift signature id is86289118-7797-11ec-90d6-0242ac120003Using this moduleThe project is present inhttps://www.pypi.orgservice. it can be freely
loaded into projects with the following command line:pip install drb-driver-swiftAccess DataDrbSwiftNodemanages the swift protocol to access remote data. The construction
parameter is an authentication object.fromdrb.drivers.swiftimportSwiftService,SwiftAuth_os_options={'user_domain_name':'Default','project_domain_name':'Default','project_name':'project_name','project_id':'project_id','tenant_name':'tenant_name','tenant_id':'tenant_id','region_name':'region_name'}auth=SwiftAuth(authurl="https://your_auth_url/v3",auth_version=3,tenant_name="tenant_name",user="user",key='password',os_options=_os_options)node=SwiftService(auth=auth)When accessing a SwiftService the node gives access to all the container of this service by giving a list of ContainerNode,
and then each container gives a list of ObjectNode for each object in the container.LimitationsThis implementation doesn't allow to write, modify, delete file on a swift container,
or it doesn't allow to delete or upload a file.
This implementation doesn't allow to download directly an all container.DocumentationThe documentation of this implementation can be found herehttps://drb-python.gitlab.io/impl/swift
Package: drb-driver-tar
TarNode ImplementationThis drb-driver-tar module implements access to tar containers with DRB data model. It is able to navigates among the tar contents.Tar Factory and Tar NodeThe module implements the basic factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The implementation name istar.The factory class is encoded intodrb.drivers.tar.base_node.The tar factory creates a TarNode from an existing tar content. It uses a base node to access the content data using a streamed implementation from the base node.The base node can be a DrbFileNode, DrbHttpNode, DrbZipNode or any other nodes able to provide streamed (BufferedIOBase,RawIOBase,IO) tar content.limitationsThe current version does not manage child modification and insertion. TarNode is currently read only.Using this moduleTo include this module into your project, thedrb-driver-tarmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-driver-tar
Package: drb-driver-wcs
WCS driverThe web coverage service driver extends abstracts WxS driver with the GetCoverage feature.NodesWcsServiceNodeRepresents the WCS service. This node has no attribute and
has as children WcsOperationNode like GetCoverage.
Others children give information about the service like for example
ServiceMetadata, that could give information about Supported Format inside a XmlNode.
Those children are filled in by the information returned from
the service's GetCapabilities request.WcsOperationNodeRepresents an operation than can mde on the service.
For WCS service, the mandatory operation are GetCoverage, GetCapabilities, and
GetFeatureInfo.
Optional operations may be provided by the service
and indicated in the possibilities thereof.
Those optional operations are also represented as WcsOperationNode.For perform an operation (mandatory or optional), you can use the operator '[]' with a dict that contains
the parameters of the request.Example:dict_request = {'COVERAGEID': 'nitrogen_5-15cm_Q0.5'}

describe_coverage = service_wcs['DescribeCoverage'][dict_request]For mandatory operations GetCoverage and DescribeCoverage you can
alternatively use Predicate WcsGetCoveragePredicate and WcsDescribeCoveragePredicate.Specific class define WcsNodeOperationGetCoverage and WcsNodeOperationDescribeCoverage
for accept respectively WcsGetCoveragePredicate WcsDescribeCoveragePredicate.Example:predicate = WcsGetCoveragePredicate(coverage_id='nitrogen_5-15cm_Q0.5', format=}


get_coverage = service_wcs['GetCoverage'][predicate]Installationpip install drb-driver-wcsExamplesfromdrb.drivers.wcsimportWcsServiceNodeurl_wcs='https+wcs://myserver_wcs/wcs'service_wcs=WcsServiceNode(url_wcs)list_cap=service_wcs[:]print('----------------------------------------')print('list_cap')print(list_cap)forchildinservice_wcs:print(child)print(child.name)# => <drb_driver_wxs.wXs_node.WXSNodeOperation object at 0x7fea3b54ac70># => GetCapabilities# => <drb_driver_wcs.wcs_nodes.WcsNodeOperationDescribeCoverage object at 0x7fea3b5652e0># => DescribeCoverage# => <drb_driver_wcs.wcs_nodes.WcsNodeOperationGetCoverage object at 0x7fea3b5765b0># => GetCoverage# => <drb_driver_xml.xml_node.XmlNode object at 0x7fea3b54aca0># => Contents#dict_request={'COVERAGE':'greenland_accumulation','VERSION':'1.1.1'}describe=service_wcs['DescribeCoverage'][dict_request]print('-----------------------------------------------------------------')print('DescribeCoverage: nitrogen_5...')print(describe)print(describe[0].name)# => <drb_driver_xml.xml_node.XmlNode object at 0x7f7aa91f0be0># => CoverageDescription
Package: drb-driver-webdav
WebDav ImplementationThis drb-driver-webdav module implements the webdav protocol access with DRB data model.WebDav Factory and WebDav NodeThe module implements the factory model defined in DRB in its node resolver. Based on the python entry point mechanism, this module can be dynamically imported into applications.The entry point group reference isdrb.driver.The implementation name iswebdav.The factory class is encoded intodrb.driver.webdav.The webdav signature id isee1b4fc6-8da0-11ec-b909-0242ac120002The Webdav can be instantiated from an uri, thehostnameand a set of optional options. TheParsedPathclass provided in drb core module can help to manage these inputs.Using this moduleThe project is present inhttps://www.pypi.orgservice. it can be freely
loaded into projects with the following command line:pip install drb-driver-webdavAccess DataDrbWebdavNodemanages the webdav protocol to access remote data. The construction
parameter is the host url and a set of optional argument.fromdrb.drivers.webdavimportDrbWebdavNode# Anonymous connectionnode=DrbWebdavNode(webdav_hostname="hostname")# Basic Auth connectionnode=DrbWebdavNode(webdav_hostname="hostname",webdav_login='user',webdav_password='password')# Certificate connectionnode=DrbWebdavNode(webdav_hostname="hostname",webdav_login='user',webdav_password='password',webdav_cert_path='/etc/ssl/certs/certificate.crt',webdav_key_path='/etc/ssl/private/certificate.key')Webdav protocol allows navigation inside the webdav server. To do so this
implementation is able to provide children of the same DrbWebdavNode type.AuthenticationRequired key is host name or IP address of the WevDAV-server with param namewebdav_hostname.
For authentication in WebDAV server usewebdav_login,webdav_password.
For an anonymous login do not specify auth properties.
When a proxy server you need to specify settings to connect through it withproxy_hostname,proxy_loginandproxy_password.
If you want to use the certificate path to certificate and private key usewebdav_cert_pathandwebdav_key_path.LimitationsNoneDocumentationThe documentation of this implementation can be found herehttps://drb-python.gitlab.io/impl/webdav