Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
MASTERING PYCHARM
MASTERING PYCHARM

MASTERING PYCHARM: Use PyCharm with fluid efficiency to write idiomatic python code

eBook
€15.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

MASTERING PYCHARM

Chapter 1. Getting the Right Look

 

"Simplicity is the ultimate sophistication."

 
 --Leonardo da Vinci

I fell in love with Python for its elegance. I love how there are no semicolons, how you can make a block through a simple indentation, how you can make multiline strings without having to concatenate them, and how you can make lambdas in a single line. I love how readable it all is, and how the documentation (docstrings) is built right into the language.

I think we all appreciate beauty. Think about it; you have a favorite font, a favorite color-scheme, and the list can go on. In essence, the code you write needs to be beautiful in your perspective, not just the syntax, but how it looks—the colors, the font, the highlighting—everything must be just right.

In this chapter, we are going to work toward making PyCharm beautiful. We'll progress from changing the overall appearance to some of the predefined appearances available to us on PyCharm. After that, we'll get into fonts and how the highlighting/coloring works in PyCharm. With the most difficult part of this chapter under our belt, we'll dive into exporting and importing styles and themes.

If you appreciate how your code looks and how you can make it as beautiful as possible, then this chapter will equip you with all the things necessary to make PyCharm as vibrant as you want it to be. I've tried to make this chapter light so that you can experiment yourself with it, and most things are pretty self-explanatory.

A short note on keyboard shortcuts

The keyboard shortcuts used in this chapter are the defaults for when you install PyCharm on Windows. PyCharm supports a wide range of shortcut schemes, and hence, it is impossible to include them all here (also, you might have made your own customizations). What I've tried to do is put in the name of the action being done so that you can take a look in your Keymap (by navigating to File | Settings…).

A short note on keyboard shortcuts

The basics

The first time you install PyCharm, the theme will default to IntelliJ. But, if you prefer something darker, I suggest you use Darcula. I personally prefer a darker IDE, so I go with a custom version of Darcula that's tailored to my tastes.

The basics

However, let's start with the default UI and see how we can make PyCharm look a little better.

The first change – fonts

The first thing that hit me when I opened up PyCharm was the hideous font set by default to be Courier New. Let's change this:

The first change – fonts

With the color scheme set to Default, you will need to save your new color scheme with a different name before you can go about making any changes to the scheme. You can just click on Save As... and then simply enter the name of your scheme in the popup. After doing so, you are free to make any changes you wish.

The first change – fonts

The Show only monospaced fonts option is enabled by default, but you can change it to include other fonts such as Arial or Times New Roman as well. Also the choice of a secondary font is important when you're trying to import your settings to another computer that does not have your desired font.

A typical example would be Consolas; it's only available on Windows machines, so when you try to import your font settings to Ubuntu or Mac, you likely get the default monospaced font. I usually set my default font to Consolas and my secondary font to Ubuntu Mono since it's free and can be made available on all the machines.

Now that the font business is taken care of, let's get down to a couple of other features. We will revisit this part of PyCharm pretty soon.

The layout

The layout

The default PyCharm layout is quite minimal. With reference to the preceding screenshot, you get an editor in [1], and the list of your directories and files in [2]. Actually, [2] is a sidebar, so if you click on [3], you get a totally different sidebar popping up.

You can show/hide it using Alt + number indicated by the underline. So, in this case, if you were to press Alt + 7, the panel indicated by [3] (Structure) would show up. Once you're familiar with the layout, you can hide all the panel buttons by clicking on [4].

The minimalist

The minimalist

If you'd like to focus completely on the code, you ideally want a minimalistic layout without all the extra tools taking up your screen. Let's see how PyCharm can help us with this.

The minimalist

So far, we can hide panels; now let's get rid of all the other distractions as well. The area highlighted with the arrow in the preceding screenshot is called the navigation bar; if you'd like to get rid of it, you can deselect the Navigation Bar option in the View option menu.

Note that with the Navigation Bar option, you also lose the Run, Debug, Coverage, and Search Anywhere buttons; but don't worry, there are plenty of shortcuts available so that you can do everything you want from your keyboard.

You can make the navigation bar appear as a popup instead of being a permanent bar by pressing Alt + Home (if this is not your shortcut, search for navigation bar in the Keymap):

The minimalist

As for the Debug and other buttons that we got rid of, you can always get them through Find Action, Ctrl + Shift + A.

The minimalist

Search Everywhere searches files, actions, classes, objects, and pretty much everything using double Shift (pressing Shift twice in quick succession):

The minimalist

PyCharm can also go to full screen mode (it even gives you a nice helpful clock in the top right):

The minimalist

I never use this mode because with my start menu minimized, with no navigation bar, and a collapsible Project sidebar, I have plenty of screen space to get the job done.

Another tool that I really appreciate is Switcher, which can be invoked with Ctrl + Tab. It appears as a floating window:

The minimalist

You can quickly navigate through your open files on the right-hand side of the window, and on the left-hand side you have some commonly used tools. You can navigate by pressing Tab again, and this will proceed through the list. You can also use the arrow keys. However, note that you will need to keep the Ctrl key pressed down as long as you're using Switcher.

You can quickly get to them by pressing the key underlined. In this case, you can quickly get to Terminal through first pressing Ctrl + Tab to bring up Switcher; if, while holding down the Ctrl key, you press 4, (in the preceding screenshot, Terminal is 4, but you might get a different number), you can open up Terminal.

You can close anything, that is, a tool panel or an editor tab using Ctrl + F4.

Beautiful code

We looked at themes briefly in the The basics section, and frankly there isn't much else left to themes in PyCharm. Right now you have your choices limited to a couple of themes if you're using IntelliJ IDEA Platform 130.* and above. In older versions of IntelliJ, there used to be a lot more.

Editor

This is where you are going to be spending most of your time in PyCharm, so it makes sense to make it look as good as possible.

Getting the right colors

Getting the right colors

Each language has its own color scheme under Editor; if you can't find it, just look it up in the search bar, and underneath Editor, you should be able to find Python. Most of the options here are the same for all the IDEs built using the IntelliJ Platform, so this is nothing native to PyCharm.

Underneath Colors & Fonts, you should be able to see a whole bunch of choices. We have already changed the font, and the other options will become more relevant as we progress through this chapter, but first let's make a couple of changes to the scheme for Python.

Getting the right colors

The list in [1] is merely the different elements in a file that can be styled. The best way to go about changing the style is not using [1]; however, it's clicking on the elements in [2], which directly takes you to the element in question. Note that you cannot change the text in [2].

Tip

Whenever we change any of the default schemes, we need to save it as a new scheme all together, which we can later make changes to. PyCharm will prompt you for a new theme name.

So, in this example, if you want to know the category for a decorator in Python, all you have to do is click on the decorator in [2], and that will lead you to the corresponding name of the said element. An interesting option is [3], which we will touch upon soon.

Getting the right colors

As you can see, when we clicked on decorator, it auto-scrolled straight to Decorator in the list. However, it's not always obvious what something is called, so clicking on it again will help us identify what element it is:

Getting the right colors

PyCharm has two different styles for docstrings and string; in this case, what we clicked on was a docstring and not a normal string, which is a lighter blue color in this case.

Style hierarchies

PyCharm's style system can work on hierarchies; what this simply means is that a lot of the common elements in different languages are handled by central rules. This is useful since in this way, you have a common set of colors for all your languages.

For example, documentation comments are common in most languages, so PyCharm allows you to control how documentation looks in all the languages, so the colors stay consistent. Let's take a look at this:

Style hierarchies
Style hierarchies

Here it says that it does inherit from another set of styles; in this case, it is Language Defaults, which has been abbreviated by PyCharm, so let's head over there, and we can see that, yes indeed, there is a Doc comment element and its styled the same way docstring is.

Styling on steroids

Note that the editor isn't the only region that you can style; you can style just about anything. For example, if you wanted to change the colors for the in-built terminal, you'd have to change the console colors; both the terminal and console share a common style setting.

A common problem that I faced when I initially installed PyCharm was that, even though my terminal was actually styled, I did not get the styling when I opened up the Terminal in PyCharm, and this is because I did not set up my console colors correctly:

Styling on steroids
Styling on steroids

As you can see in the preceding screenshot, my ANSI colors have not been set right, and hence, all my output just comes out in blue and red; thus, I had to manually change the colors. Note that some elements can also inherit their color from within the same category.

Styling on steroids

So my terminal used to look similar to this:

Styling on steroids

However, after the change, I was able to make it look more like my real terminal, although you cannot replicate it exactly.

You can of course go ahead and choose the appropriate colors, but it's best to let the color picker (shown on the right-hand side in the following screenshot) do it for you:

Styling on steroids

Tip

If you hover over your chosen color for just a second using the color picker, PyCharm will show the color you've chosen in the color circle.

Here are a few pointers on where things are located:

  • General is for the different parts of the IDE that you see. For example, when you try to find something in your editor, and your editor highlights the search item in question, you determine that via Text search result in this tab. This is really handy when you want to change things such as the color of your line numbers, for example.
  • CSS, Python, HTML, CoffeeScript, and so on are all language-specific element stylings.
  • Language Defaults provides the styling for generic language elements, such as doc comments, variables, keywords, and so on.
  • Console Colors is for styling the terminal and console (when you run something, it opens up the Console window).
  • Console Font is the font used in the terminal and console.
  • Debugger is for debugger-specific styling (I would not change this if I were you; the defaults are pretty intuitive).

Imports and exports

The best way to import a theme is to simply import it as a setting file; these are typically .jar files. Remember, we mentioned that PyCharm is a derivative of the IntelliJ Platform? Well, you can use all the themes that are available to the Platform in PyCharm as well. One of the first places to look for themes is http://ideacolorthemes.org/themes/.

This gives you a good set of themes, and also shows you the languages that a theme will work with. So, we can just quickly download a theme; in this case, we will be downloading Solarized Dark (one of my all-time favorites).

Imports and exports

To download and install Solarized Dark, perform the following steps:

  1. Head over and just click on Download Theme:
    Imports and exports
  2. You should be then presented with a .jar file, which you can save:
    Imports and exports
  3. Click on Import Settings… to open up a dialog box for importing the JAR file:
    Imports and exports
  4. Just choose the file that you want and click on OK:
    Imports and exports
  5. Make sure that Editor Colors is selected and then simply press OK:
    Imports and exports

You should now be able to see a new option in your Scheme menu:

Imports and exports

That's all there is to it. You can export quite simply as well:

Imports and exports
Imports and exports

The Color schemes option must be selected, and at the end of it, you will get a settings.jar file that you can import into another PyCharm installation.

TextMate bundles

You can also import your TextMate bundles in PyCharm:

TextMate bundles

Summary

We covered a lot in this chapter. From fonts to styles to hierarchies, we saw a lot of what we could do with the styling system in PyCharm. We took a look at a minimalistic layout without compromising on what tools were quickly available to us, using Find Action and Search Everywhere. In the end, we showed how we can import themes and export them as well.

Left arrow icon Right arrow icon

Description

PyCharm is addictive, with powerful and configurable code completion, superb editing tools, top-notch support, diverse plugins, and a vibrant ecosystem to boot. Learning how PyCharm works and maximising the synergy of its powerful tools will help you to rapidly develop applications. From leveraging the power of the editor to understanding PyCharm's internals, this book will give you a comprehensive view of PyCharm and allow you to make your own choices about which workflow and tools are best for you. You will start by getting comfortable with PyCharm and making it look exactly like you want. You can customize the tools and taskbars to suit individual developers' coding styles. You also learn how to assign keyboard shortcuts. You will master debugging by inserting breakpoints, collecting runtime data, and debugging from the console. You will understand how PyCharm works underneath and how plugins such as Codemap, Vim, Bitbucket, Assets compressor, markdown, bash file, shortcut translator, and .gitignore leverage the power of the IntelliJ platform. You will become comfortable using the VCS interface in PyCharm and see the benefits of using it for some simple tasks as well as some more complex tasks such as partial commits using changelists. You will take an in-depth look at the various tools in PyCharm, improving your workflow drastically. Finally, you will deploy powerful PyCharm tools for Django, Flask, GAE, and Pyramid Development, becoming well acquainted with PyCharm’s toolset for web development with popular platforms. Packed with insider tricks, this book will help you boost productivity with PyCharm.

What you will learn

  • Understand the internal workings of the IntelliJ Platform
  • Leverage PyCharm's powerful search tools, and learn which ones are the best for you and your workflow
  • Customize PyCharm's enhanced Python interpreter and its inbuilt terminal
  • Develop web applications quickly and easily with different frameworks such as Flask and Django
  • Understand how code completion works in PyCharm for Python and JavaScript
Estimated delivery fee Deliver to Lithuania

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 23, 2015
Length: 232 pages
Edition : 1st
Language : English
ISBN-13 : 9781783551316
Vendor :
JetBrains
Category :
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Lithuania

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Oct 23, 2015
Length: 232 pages
Edition : 1st
Language : English
ISBN-13 : 9781783551316
Vendor :
JetBrains
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 103.97
Python GUI Programming Cookbook
€36.99
MASTERING PYCHARM
€29.99
Mastering Flask
€36.99
Total 103.97 Stars icon

Table of Contents

12 Chapters
1. Getting the Right Look Chevron down icon Chevron up icon
2. Understanding the Keymap Chevron down icon Chevron up icon
3. Getting Places Chevron down icon Chevron up icon
4. Editing Chevron down icon Chevron up icon
5. Interpreters and Consoles Chevron down icon Chevron up icon
6. Debugging Chevron down icon Chevron up icon
7. The PyCharm Ecosystem Chevron down icon Chevron up icon
8. File Templates and Snippets Chevron down icon Chevron up icon
9. Version Control Integration Chevron down icon Chevron up icon
10. HTML and JavaScript Tools Chevron down icon Chevron up icon
11. Web Development with PyCharm Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6
(17 Ratings)
5 star 23.5%
4 star 5.9%
3 star 5.9%
2 star 41.2%
1 star 23.5%
Filter icon Filter
Top Reviews

Filter reviews by




CBO Dec 15, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a developer I found this book to be very helpful. I have been a long time PyCharm user, but most of my day is spent tracking down feature requests and fixing bugs. Not so much learning how to be more productive using an IDE. However I found this book a great tutorial for speeding up common tasks like refactoring, debugging and live templates for code snippets. I didn't even know about some of these more advanced features that are hidden behind the most common tasks that you use everyday. Debugging options for attaching to running processes was also a very interesting topic.
Amazon Verified review Amazon
Gixxer Boy Dec 09, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
After using Pycharm for a number of years, I decided to buy this book to try and make better use of it. It covers a number of topics, some I don't really use, such as web development. Others, such as remote debugging, using virtualenv and Vagrant integration , integrated ipython console have become part of my standard toolset.While I could have trawled the web for all of this information, this book provided a structured way to improve the quality and consistently of the code I write, as well as spending more time on the interesting tasks.Well worth the money.
Amazon Verified review Amazon
Dr. John Nov 11, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Super book thank you
Amazon Verified review Amazon
parafly73 Nov 27, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm not a developer but I use Python to make my life easier in many aspects of my daily job since a few years. Very early on I decided to use PyCharm as my IDE of choice. I always wondered that some tasks were rather cumbersome and I was pretty sure that PyCharm offered better ways to accomplish certain things. I got by and never thought it was worth the time to work through my (minor) problems.However, this book comes straight to the point, and shows how to get the most out of PyCharm. It may be not be of great value for somebody that worked with PyCharm day in day out for a long time. For me it made my job quite a bit easier as I'm not using the software more efficiently. All the little issues of which I always suspected must have a simple solution, got addressed.
Amazon Verified review Amazon
just ask me Oct 29, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Hope this helps...
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela