Git Product home page Git Product logo

shopify-data-generator's Introduction

Shopify Orders Generator

A script to generate simulated orders in your Shopify store.

One-time set up

  • Create a Private app on Shopify
  • Add the credentials to a .env file in the project directory
API_KEY=''
PASSWORD=''
SHOP_NAME='my-awesome-store-for-dev'
API_VERSION='2020-07'
  • Import some products and customers through Shopify Dashboard. You can use the exports provided in the data folder (generated using simple-sample-data app).
  • Install the dependencies
$ pip install -r requirements.txt

Runing the script

python generate.py -n 10 -d 10 will generate 10 orders no older than 10 days from the current date.

$ python generate.py -h

usage: generate.py [-h] [-n NUM_ORDERS] [-d BACK_DAYS]

Populate data in your Shopify store

optional arguments:
  -h, --help            show this help message and exit
  -n NUM_ORDERS, --num_orders NUM_ORDERS
                        Number of orders to generate
  -d BACK_DAYS, --back_days BACK_DAYS
                        Number of days to go back from the current date to generate the orders

Note: Shopify doesn't allow to create more than 5 orders per minute through the Orders API, so the script has a sleep time of 15 seconds after every order creation.

shopify-data-generator's People

Contributors

satwikkansal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.