Other file types#

In addition to packages and notebooks, Anaconda.org 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.

Standard Python package files, conda package files, and notebook files are automatically detected. For all other file types, you must explicitly specify the package, package-type, and version fields.

Example

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

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.

  1. Create a new package—which creates a Namespace that can hold multiple files— by running the following command in a terminal (Anaconda Prompt for Windows users):

    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
    

Downloading other file types#

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

# Replace <USERNAME> with your username
# Replace <PACKAGE_NAME> with the package name
https://anaconda.org/<USERNAME>/<PACKAGE_NAME>

Anyone can download these files using Anaconda Client from the terminal (Anaconda Prompt for Windows users):

# Replace <USERNAME> with your username
# Replace <PACKAGE_NAME> with the package name
anaconda download <USERNAME>/<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 works with the values pypi, conda, ipynb, and env.