API and command line interface for HDFS.
Using pip:
$ pip install hdfs
By default none of the package requirements for extensions are installed. To do so simply suffix the package name with the desired extensions:
$ pip install hdfs[avro,dataframe,kerberos]