(self, key: str, value: str, **kwargs: base.CommonArgs)
return self._client.request('/dht/put', args, decoder='json', **kwargs)
Writes a key/value pair to the DHT
		
		Given a key of the form ``/foo/bar`` and a value of any form, this will
		write that value to the DHT with that key.
		
		Keys have two parts: a keytype (foo) and the key name (bar). IPNS uses
		the ``/ipns/`` keytype, and expects the key name to be a Peer ID. IPNS
		entries are formatted with a special strucutre.
		
		You may only use keytypes that are supported in your ``ipfs`` binary:
		``go-ipfs`` currently only supports the ``/ipns/`` keytype. Unless you
		have a relatively deep understanding of the key's internal structure,
		you likely want to be using the :meth:`~ipfshttpclient.Client.name_publish`
		instead.
		
		Value is arbitrary text.
		
		.. code-block:: python
		
			>>> client.dht.put("QmVgNoP89mzpgEAAqK8owYoDEyB97Mkc … E9Uc", "test123")
			[{'ID': 'QmfLy2aqbhU1RqZnGQyqHSovV8tDufLUaPfN1LNtg5CvDZ',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmZ5qTkNvvZ5eFq9T4dcCEK7kX8L7iysYEpvQmij9vokGE',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmYqa6QHCbe6eKiiW6YoThU5yBy8c3eQzpiuW22SgVWSB8',
			  'Extra': '', 'Type': 6, 'Responses': None},
			 …
			 {'ID': 'QmP6TAKVDCziLmx9NV8QGekwtf7ZMuJnmbeHMjcfoZbRMd',
			  'Extra': '', 'Type': 1, 'Responses': []}]
		
		Parameters
		----------
		key
			A unique identifier
		value
			Abitrary text to associate with the input (2048 bytes or less)
		
		Returns
		-------
			list
Writes a key/value pair to the DHT
		
		Given a key of the form ``/foo/bar`` and a value of any form, this will
		write that value to the DHT with that key.
		
		Keys have two parts: a keytype (foo) and the key name (bar). IPNS uses
		the ``/ipns/`` keytype, and expects the key name to be a Peer ID. IPNS
		entries are formatted with a special strucutre.
		
		You may only use keytypes that are supported in your ``ipfs`` binary:
		``go-ipfs`` currently only supports the ``/ipns/`` keytype. Unless you
		have a relatively deep understanding of the key's internal structure,
		you likely want to be using the :meth:`~ipfshttpclient.Client.name_publish`
		instead.
		
		Value is arbitrary text.
		
		.. code-block:: python
		
			>>> client.dht.put("QmVgNoP89mzpgEAAqK8owYoDEyB97Mkc … E9Uc", "test123")
			[{'ID': 'QmfLy2aqbhU1RqZnGQyqHSovV8tDufLUaPfN1LNtg5CvDZ',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmZ5qTkNvvZ5eFq9T4dcCEK7kX8L7iysYEpvQmij9vokGE',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmYqa6QHCbe6eKiiW6YoThU5yBy8c3eQzpiuW22SgVWSB8',
			  'Extra': '', 'Type': 6, 'Responses': None},
			 …
			 {'ID': 'QmP6TAKVDCziLmx9NV8QGekwtf7ZMuJnmbeHMjcfoZbRMd',
			  'Extra': '', 'Type': 1, 'Responses': []}]
		
		Parameters
		----------
		key
			A unique identifier
		value
			Abitrary text to associate with the input (2048 bytes or less)
		
		Returns
		-------
			list
Writes a key / value pair to the DHT Given a key of the form / foo / bar and a value of any form this will write that value to the DHT with that key . Keys have two parts : a keytype ( foo ) and the key name ( bar ) . IPNS uses the / ipns / keytype and expects the key name to be a Peer ID . IPNS entries are formatted with a special strucutre . You may only use keytypes that are supported in your ipfs binary : go - ipfs currently only supports the / ipns / keytype . Unless you have a relatively deep understanding of the key s internal structure you likely want to be using the : meth : ~ipfshttpclient . Client . name_publish instead . Value is arbitrary text . .. code - block :: python >>> client . dht . put ( QmVgNoP89mzpgEAAqK8owYoDEyB97Mkc … E9Uc test123 ) [ { ID : QmfLy2aqbhU1RqZnGQyqHSovV8tDufLUaPfN1LNtg5CvDZ Extra : Type : 5 Responses : None } { ID : QmZ5qTkNvvZ5eFq9T4dcCEK7kX8L7iysYEpvQmij9vokGE Extra : Type : 5 Responses : None } { ID : QmYqa6QHCbe6eKiiW6YoThU5yBy8c3eQzpiuW22SgVWSB8 Extra : Type : 6 Responses : None } … { ID : QmP6TAKVDCziLmx9NV8QGekwtf7ZMuJnmbeHMjcfoZbRMd Extra : Type : 1 Responses : [] } ] Parameters ---------- key A unique identifier value Abitrary text to associate with the input ( 2048 bytes or less ) Returns ------- list
def put(self, key: str, value: str, **kwargs: base.CommonArgs):
		"""Writes a key/value pair to the DHT
		
		Given a key of the form ``/foo/bar`` and a value of any form, this will
		write that value to the DHT with that key.
		
		Keys have two parts: a keytype (foo) and the key name (bar). IPNS uses
		the ``/ipns/`` keytype, and expects the key name to be a Peer ID. IPNS
		entries are formatted with a special strucutre.
		
		You may only use keytypes that are supported in your ``ipfs`` binary:
		``go-ipfs`` currently only supports the ``/ipns/`` keytype. Unless you
		have a relatively deep understanding of the key's internal structure,
		you likely want to be using the :meth:`~ipfshttpclient.Client.name_publish`
		instead.
		
		Value is arbitrary text.
		
		.. code-block:: python
		
			>>> client.dht.put("QmVgNoP89mzpgEAAqK8owYoDEyB97Mkc … E9Uc", "test123")
			[{'ID': 'QmfLy2aqbhU1RqZnGQyqHSovV8tDufLUaPfN1LNtg5CvDZ',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmZ5qTkNvvZ5eFq9T4dcCEK7kX8L7iysYEpvQmij9vokGE',
			  'Extra': '', 'Type': 5, 'Responses': None},
			 {'ID': 'QmYqa6QHCbe6eKiiW6YoThU5yBy8c3eQzpiuW22SgVWSB8',
			  'Extra': '', 'Type': 6, 'Responses': None},
			 …
			 {'ID': 'QmP6TAKVDCziLmx9NV8QGekwtf7ZMuJnmbeHMjcfoZbRMd',
			  'Extra': '', 'Type': 1, 'Responses': []}]
		
		Parameters
		----------
		key
			A unique identifier
		value
			Abitrary text to associate with the input (2048 bytes or less)
		
		Returns
		-------
			list
		"""
		args = (key, value)
		return self._client.request('/dht/put', args, decoder='json', **kwargs)
def put ( self , key : str , value : str , * * kwargs : base . CommonArgs ) : args = ( key , value ) return self . _client . request ( '/dht/put' , args , decoder = 'json' , * * kwargs )