Python Humble Bundle from Packt

2019-01-01 Thread beliavsky--- via Python-list
For about the next two weeks, Humble Bundle 
https://www.humblebundle.com/books/python-packt-2019-books offers the following 
18 books and 7 videos on Python for $15.

BOOKS:

Python Interviews

OpenCV 3 Computer Vision with Python Cookbook

Mastering Flask Web Development

Python Automation Cookbook

Python Machine Learning By Example

Qt5 Python GUI Programming Cookbook.

Python Microservices Development

Hands-On Data Structures and Algorithms with Python

Python High Performance

Hands-On Software Engineering with Python

Django 2 by Example

Python Deep Learning Projects

Mastering Python Networking

Clean Code in Python

Modern Python Cookbook

Python 3 Object-Oriented Programming.

Raspberry Pi 3 Cookbook for Python Programmers

Django 2 Web Development Cookbook


VIDEOS:

Learn Python 3 from Scratch

Data Visualization with Python: The Complete Guide
 
REST APIs with Flask and Python
 
Data Analysis with Pandas and Python
 
Learn Python by Building a Blockchain and Cryptocurrency
 
Python for Finance: Investment Fundamentals and Data Analytics
 
Python For Offensive PenTest: A Complete Practical Course
-- 
https://mail.python.org/mailman/listinfo/python-list


mouse click automation

2019-01-01 Thread Siddha 2305
Hello All,

I am trying to write a script to emulate mouse clicks.
The script launches Google chrome, navigates to the website. But after that the 
script does not go to the specified coordinates. 

Also, I noticed that the screen coordinate is different every time I tried to 
check it.

Could someone please help me fix this?

PS : I am a complete beginner and this is my first attempt at this

from pynput.mouse import Button, Controller

import webbrowser

mouse = Controller()

chromedir= 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'

webbrowser.get(chromedir).open("https://lnkd.in/fT4AKq8";)

time.sleep(30) # to let the link load

mouse.position = (43, 483) # everytime I tried to check the coordinates of the 
pace I wanted to do a left click, it was different.

mouse.click(Button.left, 1)



Thank you in advance.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: mouse click automation

2019-01-01 Thread Brian Oney via Python-list
I am unfamiliar with pynput. I have had good experience with pyautogui. As your 
script isn't yet advanced, you may consider it.

https://pyautogui.readthedocs.io/en/latest/introduction.html
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: mouse click automation

2019-01-01 Thread Larry Martell
On Tue, Jan 1, 2019 at 12:10 PM Siddha 2305  wrote:
>
> Hello All,
>
> I am trying to write a script to emulate mouse clicks.
> The script launches Google chrome, navigates to the website. But after that 
> the script does not go to the specified coordinates.
>
> Also, I noticed that the screen coordinate is different every time I tried to 
> check it.
>
> Could someone please help me fix this?
>
> PS : I am a complete beginner and this is my first attempt at this
>
> from pynput.mouse import Button, Controller
>
> import webbrowser
>
> mouse = Controller()
>
> chromedir= 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
>
> webbrowser.get(chromedir).open("https://lnkd.in/fT4AKq8";)
>
> time.sleep(30) # to let the link load
>
> mouse.position = (43, 483) # everytime I tried to check the coordinates of 
> the pace I wanted to do a left click, it was different.
>
> mouse.click(Button.left, 1)

I have done this work both Selenium and Cypress. Check those out.
-- 
https://mail.python.org/mailman/listinfo/python-list


SCons 3.0.2 Release

2019-01-01 Thread Bill Deegan
  A new SCons release, 3.0.2, is now available on the SCons download page:

  https://scons.org/pages/download.html

  Here is a summary of the changes since 3.0.1:

  NEW FUNCTIONALITY

- Properly support versioned shared libraries for MacOS.  We've also
introduced two
  new env variables APPLELINK_CURRENT_VERSION and
APPLELINK_COMPATIBILITY_VERSION which will specify
  what is passed to the linkers -current_version and
-compatibility_version flags.  If not specified
  they will be derived from SHLIBVERSION as such:
  - APPLELINK_CURRENT_VERSION = SHLIBVERSION
  - APPLELINK_COMPATIBILITY_VERSION = all but the last digit in
SHLIBVERSION with .0 appended.
  Note that the values of the above will be validated. Valid format
for either APPLELINK variable is
  X[.Y[.Z]] where 0 <= X <= 65535, 0 <= Y <= 255, 0 <= Z <= 255.
- Add flag must_exist to SConscript() call to fail on missing script.
Not failing on missing script is now considered deprecated, and the
first instance will print a
deprecation message.
- Add xz compression format to packaging choices.
- Add Textfile/Substfile to default environment. (issue #3147)
- Added virtualenv support. A new function Virtualenv() determines
whether
SCons runs in a virtualenv. The search PATH may also be extended to
prefer executables from the current virtualenv over the ones
provided by
base environment. New option --enable-virtualenv provided to import
some
virtualenv-related variables to SCons and extend every
env['ENV']['PATH']
automatically. New option --ignore-virtualenv disables this. Two
environment variables, SCONS_ENABLE_VIRTUALENV and
SCONS_IGNORE_VIRTUALENV are supported for the same purpose.

  DEPRECATED FUNCTIONALITY

- Going forward calling SConscript on a non-existing SConscript file
will issue a warning.  Currently
  it will issue a deprecation notice.

  CHANGED/ENHANCED EXISTING FUNCTIONALITY

- Recognize new java 9, 10, 11 (as 9.0 and 10.0, 11.0)

  FIXES

- Fix issue #2980 with credit to Piotr Bartosik (and William Blevins).
This is an issue where using
 TimeStamp-MD5 Decider and CacheDir can yield incorrect md5's being
written into the .sconsign.
 The difference between Piotr Bartosik's patch and the current code
is that the more complicated
 creation of file to csig map is only done when the count of
children for the current node doesn't
 match the previous count which is loaded from the sconsign.


  Thanks to Bernard Blackham, William Deegan, Ray Donnelly, Andrew
Featherstone, Arda Fu,
  Philipp Maierhöfer,  Matthew Marinets, Fredrik Medley, Daniel Moody, Gary
Oberbrunner,
  Jonathon Reinhart, Zachary Tessler, Paweł Tomulik, Richard West, Mats
Wichmann, Bernhard M. Wiedemann,
  and Hao Wu for their contributions to this release.
  Contributors are listed alphabetically by their last name.

git shortlog --no-merges -ns 3.0.1..HEAD
   226  William Deegan
79  Daniel Moody
72  Mats Wichmann
17  Paweł Tomulik
16  Andrew Featherstone
 8  grbd
 7  maiphi
 6  Gary Oberbrunner
 6  Daniel
 4  Hao Wu
 3  Gabriel Russell
 2  MatthewMarinets
 2  Jonathon Reinhart
 2  ArdaFu
 1  Bernhard M. Wiedemann
 1  Isaac Pascual Monells
 1  Fredrik Medley
 1  Philipp Maierhoefer
 1  Piotr Kasprzyk
 1  Ray Donnelly
 1  Zachary Tessler
 1  cclauss
-- 
https://mail.python.org/mailman/listinfo/python-list