Git Product home page Git Product logo

eos-downloader's People

Contributors

dependabot[bot] avatar titom73 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ryanmerolle

eos-downloader's Issues

[Feature] Better version support

This is a wide open feature request that is not well formed.

It would be ideal to add some feature to help users with regards to versions.

IE a couple of options:

  • Create a new function that allows you to get a list of available versions (possibly allowing for filters)
  • Get the latest M or F version for a particular code train
  • Get the recommended version

Add Better error handling for missing token

Current error if you do not set an ENV var or pass the token argument:

โžœ  netdb eos-download --image cEOS --version 4.28.3M
๐Ÿช eos-downloader is starting...
    - Image Type: cEOS
    - Version: 4.28.3M
Traceback (most recent call last):
  File "/home/rmerolle/.local/bin/eos-download", line 73, in <module>
    my_download.download_local(file_path=cli_options.destination, checksum=True)
  File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 402, in download_local
    file_downloaded = self._download_file(file_path=file_path, filename=self.filename)
  File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 318, in _download_file
    remote_file_path = self._get_remote_filepath()
  File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 241, in _get_remote_filepath
    root = self._get_folder_tree()
  File "/home/rmerolle/.local/lib/python3.8/site-packages/eos_downloader/object_downloader.py", line 227, in _get_folder_tree
    folder_tree = (result.json()["data"]["xml"])
KeyError: 'data'

CLI cannot import cli module

Issue when running ardl on eve-ng or pnetlab

Original exception was:
Traceback (most recent call last):
  File "/usr/local/bin/ardl", line 5, in <module>
    from eos_downloader.cli.cli import cli
ModuleNotFoundError: No module named 'eos_downloader.cli'

New Info CLI is broken when using `--branch`

When running new ardl command info, we generate a stacktrace

$ ardl info eos-versions -rtype m --branch 4.28

Traceback (most recent call last):
  File "/usr/local/bin/ardl", line 8, in <module>
    sys.exit(cli())
  File "/local/eos_downloader/cli/cli.py", line 69, in cli
    ardl(
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/local/eos_downloader/cli/info/commands.py", line 81, in eos_versions
    versions = my_download.get_eos_versions(branch=branch, rtype=release_type)
  File "/local/eos_downloader/eos.py", line 145, in get_eos_versions
    elif branch is not None and version.is_in_branch(branch) and version.rtype == rtype:
  File "/local/eos_downloader/models/version.py", line 255, in is_in_branch
    return self.major == branch.major and self.minor == branch.minor
UnboundLocalError: local variable 'branch' referenced before assignment

Relax constraints on Click and Pydantic

Currently Click and Pydantic are installed in fixed versions meaning eos-downloader cannot be installed in parallel of another package with different versions of these 2 packages.

"click==8.1.3",
"click-help-colors==0.9.1",
"pydantic==1.10.4",

Unable to download CloudEOS64-4.30.4M.swi

I ran below command and was expecting the image of CloudEOS64-4.30.4M.swi, but it actually downloaded cEOS64-lab-4.30.4M.tar.xz.

ardl, version 0.9.0

ardl --token xxxx get eos --latest -rtype m --image-type cEOS64 --output ~/download/

EOS downloader not working starting April 6th

Starting begining of April, EOS website requires to not use generic UA from request but use one of the wellknown UA

headers = {
    "Content-Type": "application/json",
    "User-Agent": "<to be updated>"
}

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.