Git Product home page Git Product logo

cadet-cli's Introduction

cadet-cli

Build Status

Cosmos Automated Data Exchange Tool - A cross-platform utility to synchronize data with a DocumentDB-backed Azure Cosmos DB instance. ๐Ÿ‘ฉโ€๐Ÿš€โ˜

Cadet-cli branded logo of a rocketship

You can install the latest version of cadet from the Releases page, right here on GitHub.

How it works

Note: at this time, cadet does not support downloading data from Azure Cosmos DB.

Cadet is designed to make it simple to exchange data with Azure Cosmos DB instances that are using the DocumentDB backing store. It is a cross-platform python CLI that leverages the Azure Cosmos DB python SDK under the hood. Here are some common things you can do using cadet:

Import data from csv

The following command will import a comma-separated values file into the Azure Cosmos DB server located at your-server-connection-string into the collection your-collection-name on database your-database-name. It will read the data from path/to/csv.csv, and will output progress as data uploads.

cadet import --type csv --connection-string "your-server-connection-string" --database "your-database-name" --collection "your-collection-name" path/to/csv.csv

Import data from tsv

The following command will import a tab-separated values file into the Azure Cosmos DB server located at your-server-connection-string into the collection your-collection-name on database your-database-name. It will read the data from path/to/tsv.tsv, and will output progress as data uploads.

cadet import --type tsv --connection-string "your-server-connection-string" --database "your-database-name" --collection "your-collection-name" path/to/tsv.tsv

Contributing

For more information - including how to get started - see the CONTRIBUTING document.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

cadet-cli's People

Contributors

bengreenier avatar dependabot[bot] avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar mindlessroman avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cadet-cli's Issues

Python SDK Changed and Adding JSON Support

The SDK for Azure's CosmosDB has changed a bit since we first wrote this. Making the required updates to all the CSV/TSV uploaders and adding support for JSON file uploads.

Bug: Upload Complete hanging

Noticed that with larger files, the "Upload Complete" messaging hangs for a number of minutes after the progress bar reaches 100%. This may be the unit chose for when the update() occurs.

Feature Request: Download Cosmos Data

Today, cadet is only capable of uploading data to Azure Cosmos DB. This feature request tracks the need for a download function as well.

If you feel you need download functionality, please ๐Ÿ‘ this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.