Saravanan666/pypi-org huggingface dataset:
Package: drb-impl-json
JsonNode ImplementationThis drb-impl-json module 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.impl.The implementation name isjson.The factory class is encoded intodrb_impl_json.json_node_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-impl-file), 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-impl-jsonmodule shall be referenced intorequirement.txtfile, or
the following pip line can be run:pip install drb-impl-jsonNode Creation:The implementation can create a JsonNode by giving the path to a json file:from drb_impl_json import DrbJsonNode

node = JsonNode(PATH_JSON)the implementation can also give a dictionary in argument:from drb_impl_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 implementation can retrieve the data of your Json with this:from drb_impl_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 implementation can be found herehttps://drb-python.gitlab.io/impl/json
Package: drb-impl-netcdf
Netcdf ImplementationThis 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.impl.The implementation name isnetcdf.The factory class is decribed with implementationdrb_impl_netcdf.drb_impl_signature.The netCDF 4.0 data model is based on recusive 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-impl-netcdfmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-impl-netcdf
Package: drb-impl-s3
amazon simple storage serviceThis drb-impl-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.impl.The implementation name isaws3.The factory class is encoded intodrb_impl_s3.s3_node_factory.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-impl-s3Access DataDrbS3Nodemanages the s3 protocol to access remote data. The construction
parameter is an authentication object.fromdrb_impl_s3importDrbS3Service,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 implementation doesn't allow to write, modify, delete file on a s3 bucket,
or it doesn't allow to delete or upload a file.
This implementation 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-impl-swift
Swift ImplementationThis drb-impl-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.impl.The implementation name isswift.The factory class is encoded intodrb_impl_swift.swift_node_factory.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-impl-swiftAccess DataDrbSwiftNodemanages the swift protocol to access remote data. The construction
parameter is an authentication object.fromdrb_impl_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-impl-tar
TarNode ImplementationThis drb-impl-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.impl.The implementation name istar.The factory class is encoded intodrb_impl_tar.file_tar_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-impl-tarmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-impl-tar
Package: drb-impl-wcs
WCS implementationThe 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-impl-wcsExamplesfromdrb.factoryimportDrbFactoryResolverfromdrb_impl_wcsimportWcsServiceNodeurl_wcs='https+wcs://myserver_wcs/wcs'resolver=DrbFactoryResolver()service_wcs=WcsServiceNode(url_wcs)list_cap=service_wcs.childrenprint('----------------------------------------')print('list_cap')print(list_cap)forchildinservice_wcs.children:print(child)print(child.name)# => <drb_impl_wXs.wXs_node.WXSNodeOperation object at 0x7fea3b54ac70># => GetCapabilities# => <drb_impl_wcs.wcs_nodes.WcsNodeOperationDescribeCoverage object at 0x7fea3b5652e0># => DescribeCoverage# => <drb_impl_wcs.wcs_nodes.WcsNodeOperationGetCoverage object at 0x7fea3b5765b0># => GetCoverage# => <drb_impl_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_impl_xml.xml_node.XmlNode object at 0x7f7aa91f0be0># => CoverageDescription
Package: drb-impl-webdav
WebDav ImplementationThis drb-impl-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.impl.The implementation name iswebdav.The factory class is encoded intodrb_impl_webdav.drb_impl_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-impl-webdavAccess DataDrbWebdavNodemanages the webdav protocol to access remote data. The construction
parameter is the host url and a set of optional argument.fromdrb_impl_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
Package: drb-impl-wXs
WXS implementationThis drb-impl-wXs module implements the OWS services (WFS, WMS, WCS, ...).
For more information about OWS Service seehttps://www.ogc.org/or/andhttps://www.ogc.org/standards/wmsOGC catalog, this implementation is abstract, it means that to have a usable
OWS service implementation, we have to create an implementation for this service
dependent on this abstract implementation.
Sot have a signature, its derived implementations will have to define oneNodesWXSServiceNodeAbstract, have to be derived.
Represents the WXS service (like WMS, WCS, ...). This node has no attribute and
has as children request (like GetMap) WXsOperationNode and other children that
define the Service as XmlNodeWXSNodeOperationRepresents an operation than can be used on the service.Installationpip install drb-impl-wxsUsagesTo implement an OWS Web Service, we have to create a class based on  WXSServiceNode
and define at least the read_capabilities method.classWmsServiceNode(WXSServiceNode):...defread_capabilities(self,node_capabilities):....After we can use this node like other DRB Node
The operation of service are available across the children of the node service,
See drb_impl_wms or drb_impl_wcs for more information.Example with a drb_impl_wms implurl_wms='https+wms://wms.fr/geoserver/demo/wms?'# The service use a specialservice_wms=WmsServiceNode(url_wms)dict_request={'layers':'mgrs_region','format':'image/png','height':256,'width':256,'crs':'EPSG:3857','bbox':'7514065.628545968,7514065.628545967,10018754.171394622,10018754.171394628'}get_map=service_wms['GetMap'][dict_request]print('----------------------------------------')print('GetMap : with parameter return image')print(get_map)# => return an drb image# url of request# https://wms.fr/geoserver/demo/wms?# &service=WMS&# request=GetMap&# layers=mgrs_region&# format=image%2Fpng&# crs=EPSG%3A3857&# bbox=7514065.628545968,7514065.628545967,10018754.171394622,10018754.171394628Example with a drb_impl_wcs implurl_wcs='https+wcs://wcs/mapserv'# The service use a specialservice_wcs=WcsServiceNode(url_wcs,auth=None,map='/map/nitrogen.map')# SUBSET is use twice with two values, we use a list to in dictdict_request={'COVERAGEID':'nitrogen_5-15cm_Q0.5','VERSION':'2.0.1','SUBSET':['X(-1784000,-1140000)','Y(1356000,1863000)'],'FORMAT':'GEOTIFF_INT16','SUBSETTINGCRS':'http://www.opengis.net/def/crs/EPSG/0/152160','OUTPUTCRS':'http://www.opengis.net/def/crs/EPSG/0/152160'}get_map=service_wcs['GetCoverage'][dict_request]# url of request# https://wcs/mapserv?# map=%2Fmap%2Fnitrogen.map&# SERVICE=WCS&VERSION=2.0.1&# REQUEST=GetCoverage&# COVERAGEID=nitrogen_5-15cm_Q0.5&# FORMAT=GEOTIFF_INT16&# SUBSET=X(-1784000%2C-1140000)&SUBSET=Y(1356000%2C1863000)&# SUBSETTINGCRS=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F152160&# OUTPUTCRS=http%3A%2F%2Fwww.opengis.net%2Fdef%2Fcrs%2FEPSG%2F0%2F152160# => return the image
Package: drb-impl-xml
XmlNode ImplementationThis drb-impl-xml module implements xml format access with DRB data model. It is able to navigates among the xml contents.Xml Factory and Xml 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.impl.The implementation name isxml.The factory class is encoded intodrb_impl_xml.xml_node_factory.The xml factory creates a XmlNode from an existing xml 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-impl-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. XmlNode is currently read only.Using this moduleTo include this module into your project, thedrb-impl-xmlmodule shall be referenced intorequirement.txtfile, or the following pip line can be run:pip install drb-impl-xml
Package: drb-impl-zarr
ZarrNode ImplementationThis drb-impl-zarr module implements access to zarr containers with DRB data model. It is able to navigates among the zarr contents.Zar Factory and Zarr 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.impl.The implementation name iszarr.The factory class is decribed with implementationdrb_impl_zarr.drb_impl_signature.The zarr factory creates a ZarrNode from an existing zarr 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) zarr content.limitationsThe current version does not manage child modification and insertion. ZarrNode is currently read only.Using this moduleTo include this module into your project, thedrb-impl-zarrmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-impl-zarr
Package: drb-impl-zip
ZipNode ImplementationThis drb-impl-zip module implements access to zip containers with DRB data model. It is able to navigates among the zip contents.Zip Factory and Zip 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.impl.The implementation name iszip.The factory class is encoded intodrb_impl_zip.file_zip_node.The zip factory creates a ZipNode from an existing zip 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) zip content.limitationsThe current version does not manage child modification and insertion. ZipNode is currently read only.Using this moduleTo include this module into your project, thedrb-impl-zipmodule shall be referenced intorequirements.txtfile, or the following pip line can be run:pip install drb-impl-zip
Package: drb-metadata
DRB Metadata ExtractorIt's an applicative part using DRB allowing to extract metadata from
data according its topic.MetadataHow to extract metadata ?fromdrb.metadataimportMetadataAddonimportdrb.topics.resolverasresolverif__name__=='__main__':topic,node=resolver.resolve('<my_resource_url>')# topic keyword argument is not mandatorymetadata=MetadataAddon().apply(node,topic=topic)formd_name,mdinmetadata.items():print(md_name,' -- ',md.extract())How to define metadata ?Metadata are defined in acortex.yamlfile following the template:drbItemClass:<topic_uuid># target topicvariables:# variable list-name:<var_name># variable name<extractor>:<extractor_content># an extractormetadata:# metadata list-name:my_metadata# metadata name<extractor>:<extractor_content># an extractormetadata are applied to their target topic and its derivativesinherited metadata is override if it's redefined in a derivative topicvariables are not transitive between a topic and its derivativesPackagingThe package python containing metadata of a DRB topic must have the following
instruction:adrb.metadataentry point whose its value is the targeted Python
package containing thecortex.yamlfile
Package: drb-metadata-file
DRB File Metadata AddonTheDRB file metadata addonallows to retrieve metadata for nodes provided by
thefile driver.Here the metadata list provided by this addon:namedescriptionnamefilenamesizefile sizetypefile kind [REGULAR, DIRECTORY, LINK, SOCKET, ... ]creationTimelast update metadata or creation time in secondmodificationTimelast modification time in secondlastAccessTimelast access time in secondownerfile owner idgroupfile group idnkinknumber of link attached to this fileinodeinode number or file index
Package: drb-metadata-sentinel1
DRB Sentinel-1 Metadata AddOnThis addon allowing to enrich theSentinel-1 Producttopic with its metadata
derivative topics also.Defined metadata:Sentinel-1 ProductplatformShortNameplatformSerialIdentifierinstrumentShortNameoperationalModeswathIdentifierprocessingDateprocessingCenterprocessorNameprocessorVersionbeginningDateTimeendingDateTimepolarisationChannelsdatatakeIdstartTimeFromAscendingNodecompletionTimeFromAscendingNodeorbitNumberorbitDirectioncycleNumberrelativeOrbitNumberproductTypeproductClassinstrumentConfigurationIDsliceProductFlagsliceNumbertotalSlicesSentinel-1 Level 0 ProductproductConsolidationSentinel-1 Level 1 ProducttimelinessproductCompositionsegmentStartTimeSentinel-1 Level 2 ProducttimelinessproductCompositionsegmentStartTimeSentinel-1 Auxiliary ProductPlatformShortNamePlatformSerialIdentifierInstrumentShortNameProcessingDateProcessingCenterProcessorNameProcessorVersionbeginningDateTimeproductTypeproductGenerationinstrumentConfigurationIDSentinel-1 EOF Auxiliary ProductPlatformShortNamePlatformSerialIdentifierProcessingDateProcessingCenterProcessorVersionbeginningDateTimeendingDateTimeproductType