Giter Site home page Giter Site logo

Port to python 3 about droidbot HOT 20 CLOSED

honeynet avatar honeynet commented on July 4, 2024
Port to python 3

from droidbot.

Comments (20)

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Hi, I would like to help with this, do you have any roadmap?

from droidbot.

yuanchun-li avatar yuanchun-li commented on July 4, 2024

Thank you very much @ClaudiuGeorgiu .
I don't have a roadmap for this. Could you install and test DroidBot with Python 3 and see what happens?

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Sure, I will test it in the next days and I will report here the results.

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Hi, I've started updating the code (https://github.com/ClaudiuGeorgiu/droidbot/commits/python3). It looks like that the last version of androguard introduced some changes in how the manifest is handled so droidbot needs to be updated accordingly. I'll investigate more in the next days and I'll report back here the progress.

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Hi @ylimit, I've finally managed to run DroidBot with Python3 but I don't think the changes are compatible with Python2 (I wasn't interested in maintaining the compatibility). I'm going to continue working on my fork of DroidBot to do some minor refactoring/add some minor features for my use case, so let me know if you are interested in a pull request.

from droidbot.

yuanchun-li avatar yuanchun-li commented on July 4, 2024

Thank you very much @ClaudiuGeorgiu .
I just created a python3 branch. Please pull your code to that branch.

from droidbot.

anant-joshi avatar anant-joshi commented on July 4, 2024

Hi, I would also like to help with this. Is there anything left to do in this?

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Hi @anant-joshi, I just added basic Python3 compatibility (see the python3 branch). Currently I'm working on the following things:

  • use logger.something instead of print (so that all the code is consistent)
  • use .format(...) instead of % in strings
  • fix typos and update docstrings (this has nothing to do directly with Python3)

Let me know if you want to help with this.

@ylimit, what do you think about this list of tasks?

from droidbot.

anant-joshi avatar anant-joshi commented on July 4, 2024

Sure, sounds good.

from droidbot.

anant-joshi avatar anant-joshi commented on July 4, 2024

I've converted all strings from % to .format().
Here: 1ff2a4e

from droidbot.

Erick2206 avatar Erick2206 commented on July 4, 2024

Hey @ClaudiuGeorgiu can I work on porting print statements to loggers?

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

@Erick2206 yes, of course.

from droidbot.

Erick2206 avatar Erick2206 commented on July 4, 2024

@ClaudiuGeorgiu so I have to port all print statements to logger statements, right?

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

@Erick2206 yes. For example if you find a print statement inside an except block you can convert it to logger.error(...) or logger.warning(...), depending on the severity of the error.

from droidbot.

Erick2206 avatar Erick2206 commented on July 4, 2024

@ClaudiuGeorgiu I have sent a pull request, please review it and merge if correct.

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

@Erick2206 I reviewed the pull request. However I can't merge pull requests, you will have to wait for someone with write access to the repository.

from droidbot.

Jayd-1234 avatar Jayd-1234 commented on July 4, 2024

Hi @ClaudiuGeorgiu , I would like to contribute to towards the porting process. How can I help?

from droidbot.

ClaudiuGeorgiu avatar ClaudiuGeorgiu commented on July 4, 2024

Thanks @Jayd-1234 but at the moment I don't know what else has to be ported to Python3, but if you have any idea just open a new pull request.

from droidbot.

yuanchun-li avatar yuanchun-li commented on July 4, 2024

The master branch now supports Python 3. Not well-tested though.

from droidbot.

YurieCo avatar YurieCo commented on July 4, 2024
Sorry, I haven't saw the branch for Python3

from droidbot.

Related Issues (20)

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.