Working with other file types

In addition to packages and notebooks, Anaconda Cloud can be used to store and share data science files of any type.

Uploading other file types

You can upload any type of file with the Anaconda Client command line interface (CLI) by using the steps below.

PyPI package files, conda package files and notebook files are automatically detected. There is no auto-detect for other types of files, so you must explicitly specify the package, package-type and version fields.

In the following example, we upload a spreadsheet named baby-names in comma separated value (CSV) format.

Use the Terminal window or an Anaconda Prompt to upload the spreadsheet:

  1. Create a new package, which creates a namespace that can hold multiple files:

    anaconda login
    anaconda package --create jsmith/baby-names
    
  2. Upload the file to the new namespace:

    anaconda upload --user jsmith --package baby-names --package-type file --version 1 baby-names1.csv
    

NOTE: In this example, the user–or organization–name is jsmith, the package name is baby-names, the package type is file, the version is 1 and the full filename is baby-names1.csv.

Downloading other file types

Files, such as the one created above, are available at:

https://anaconda.org/<USERNAME>/<PACKAGENAME>

Anyone can download these files using Client from the Terminal window or an Anaconda Prompt:

anaconda download <USERNAME>/<PACKAGENAME>

NOTE: Replace <USERNAME> with the desired username, and <PACKAGENAME> with the desired package name.

If the repository has multiple files with the same name and different extensions, anaconda download will download all of them by default. If you use anaconda-client 1.7 or higher, you can use anaconda download with the option --package-type or -t to specify only one of these files. This option can work with the values pypi, conda, ipynb, and env.